From 96ef63c9996612caea7342cf78c0abb57564989c Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 9 May 2015 21:17:04 -0500 Subject: fix repr tests --- tests/test_x509_ext.py | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'tests') diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py index a18a443b..58fb3c46 100644 --- a/tests/test_x509_ext.py +++ b/tests/test_x509_ext.py @@ -1442,10 +1442,7 @@ class TestDistributionPoint(object): x509.Name([ x509.NameAttribute(x509.OID_COMMON_NAME, "myCN") ]), - frozenset([ - x509.ReasonFlags.key_compromise, - x509.ReasonFlags.ca_compromise, - ]), + frozenset([x509.ReasonFlags.ca_compromise]), [ x509.DirectoryName( x509.Name([ @@ -1459,11 +1456,10 @@ class TestDistributionPoint(object): assert repr(dp) == ( ", val" - "ue='myCN')>])>, reasons=frozenset([, ])," - " crl_issuer=[, value='Important C" - "A')>])>)>])>" + "ue='myCN')>])>, reasons=frozenset([]), crl_issuer=[, v" + "alue='Important CA')>])>)>])>" ) @@ -1514,18 +1510,15 @@ class TestCRLDistributionPoints(object): x509.DistributionPoint( [x509.UniformResourceIdentifier(u"ftp://domain")], None, - frozenset([ - x509.ReasonFlags.key_compromise, - x509.ReasonFlags.ca_compromise, - ]), + frozenset([x509.ReasonFlags.key_compromise]), None ), ]) assert repr(cdp) == ( "], relative_name=None, reason" - "s=frozenset([, ]), crl_issuer=None)>])>" + "s=frozenset([]), crl" + "_issuer=None)>])>" ) def test_eq(self): -- cgit v1.2.3