aboutsummaryrefslogtreecommitdiff
path: root/tests/test_rfc3779.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_rfc3779.py')
-rw-r--r--tests/test_rfc3779.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_rfc3779.py b/tests/test_rfc3779.py
index 081f69b..af90376 100644
--- a/tests/test_rfc3779.py
+++ b/tests/test_rfc3779.py
@@ -58,7 +58,9 @@ V+vo2L72yerdbsP9xjqvhZrLKfsLZjYK4SdYYthi
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'] == rfc3779.id_pe_ipAddrBlocks:
s = extn['extnValue']
@@ -74,9 +76,12 @@ V+vo2L72yerdbsP9xjqvhZrLKfsLZjYK4SdYYthi
assert as_ids.prettyPrint()
assert der_encoder.encode(as_ids) == s
+ assert rfc3779.id_pe_ipAddrBlocks in extn_list
+ assert rfc3779.id_pe_autonomousSysIds in extn_list
+
+
def testExtensionsMap(self):
substrate = pem.readBase64fromText(self.pem_text)
- rfc5280.certificateExtensionsMap.update(rfc3779.certificateExtensionsMapUpdate)
asn1Object, rest = der_decoder.decode(substrate, asn1Spec=self.asn1Spec)
assert not rest
assert asn1Object.prettyPrint()