From 20c85a52c48c09942285ca7f870595c5973c7a55 Mon Sep 17 00:00:00 2001 From: Terry Chia Date: Thu, 10 Jul 2014 14:31:28 +0800 Subject: Add a sensible repr to RSAPublicNumbers --- tests/hazmat/primitives/test_rsa.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/hazmat/primitives') diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py index 8e850737..e53ff06b 100644 --- a/tests/hazmat/primitives/test_rsa.py +++ b/tests/hazmat/primitives/test_rsa.py @@ -27,6 +27,7 @@ from cryptography.exceptions import ( ) from cryptography.hazmat.primitives import hashes, interfaces from cryptography.hazmat.primitives.asymmetric import padding, rsa +from cryptography.hazmat.primitives.asymmetric.rsa import RSAPublicNumbers from .fixtures_rsa import ( RSA_KEY_1024, RSA_KEY_1025, RSA_KEY_1026, RSA_KEY_1027, RSA_KEY_1028, @@ -1973,3 +1974,7 @@ class TestRSANumbers(object): n=33 ) ).private_key(backend) + + def test_public_number_repr(self): + num = RSAPublicNumbers(1, 1) + assert repr(num) == "" -- cgit v1.2.3