aboutsummaryrefslogtreecommitdiff
path: root/tests/test_rfc8226.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_rfc8226.py')
-rw-r--r--tests/test_rfc8226.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_rfc8226.py b/tests/test_rfc8226.py
index 69fd438..8993ae1 100644
--- a/tests/test_rfc8226.py
+++ b/tests/test_rfc8226.py
@@ -77,7 +77,9 @@ yEFWA6G95b/HbtPMTjLpPKtrOjhofc4LyVCDYhFhKzpvHh1qeA==
assert asn1Object.prettyPrint()
assert der_encoder.encode(asn1Object) == substrate
+ extn_list = [ ]
for extn in asn1Object['tbsCertificate']['extensions']:
+ extn_list.append(extn['extnID'])
if extn['extnID'] in rfc5280.certificateExtensionsMap.keys():
extnValue, rest = der_decoder.decode(extn['extnValue'],
asn1Spec=rfc5280.certificateExtensionsMap[extn['extnID']])
@@ -86,6 +88,7 @@ yEFWA6G95b/HbtPMTjLpPKtrOjhofc4LyVCDYhFhKzpvHh1qeA==
if extn['extnID'] == rfc8226.id_pe_TNAuthList:
assert extnValue[0]['spc'] == 'fake'
+ assert rfc8226.id_pe_TNAuthList in extn_list
suite = unittest.TestLoader().loadTestsFromModule(sys.modules[__name__])