aboutsummaryrefslogtreecommitdiff
path: root/tests/test_rfc3779.py
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-04-09 18:52:03 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-04-09 18:52:03 +0000
commitb3112bf96b1654e199489529e371faeaf1513057 (patch)
tree1e56fddd4e95a55bf547e014d7ee168824c9e313 /tests/test_rfc3779.py
parenteeb43cc103f86efb51a0be45c93198e8364511c7 (diff)
parent9e51c9ac3afb411a26639585a8c8574fdba24627 (diff)
downloadpyasn1-modules-b3112bf96b1654e199489529e371faeaf1513057.tar.gz
Upgrade python/pyasn1-modules to v0.2.8 am: 9e51c9ac3a
Change-Id: Ic039bcd255c8cbf407207af52426b09068701f01
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()