diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-05-11 10:49:20 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-05-11 10:49:20 -0500 |
commit | 9aaef9e516ae1c54c79f07b0441c21c29f8aeb15 (patch) | |
tree | d41497a099fe548f4cf9ff0b40083e0f4b406401 /tests | |
parent | 3f8ddeb3fa8d66710dfbcef54061f5ce9c10c2f4 (diff) | |
download | cryptography-9aaef9e516ae1c54c79f07b0441c21c29f8aeb15.tar.gz cryptography-9aaef9e516ae1c54c79f07b0441c21c29f8aeb15.tar.bz2 cryptography-9aaef9e516ae1c54c79f07b0441c21c29f8aeb15.zip |
use !r for explicit_text in NoticeReference repr
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_x509_ext.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py index 10afa1b7..fa025d9c 100644 --- a/tests/test_x509_ext.py +++ b/tests/test_x509_ext.py @@ -71,7 +71,7 @@ class TestUserNotice(object): un = x509.UserNotice(x509.NoticeReference("org", None), "text") assert repr(un) == ( "<UserNotice(notice_reference=<NoticeReference(organization=org, " - "notice_numbers=None)>, explicit_text=text)>" + "notice_numbers=None)>, explicit_text='text')>" ) @@ -102,13 +102,13 @@ class TestPolicyInformation(object): assert repr(pi) == ( "<PolicyInformation(policy_identifier=<ObjectIdentifier(oid=1." "2.3, name=Unknown OID)>, policy_qualifiers=['string', <UserNo" - "tice(notice_reference=None, explicit_text=hi)>])>" + "tice(notice_reference=None, explicit_text='hi')>])>" ) else: assert repr(pi) == ( "<PolicyInformation(policy_identifier=<ObjectIdentifier(oid=1." "2.3, name=Unknown OID)>, policy_qualifiers=[u'string', <UserN" - "otice(notice_reference=None, explicit_text=hi)>])>" + "otice(notice_reference=None, explicit_text='hi')>])>" ) |