diff options
author | Haibo Huang <hhb@google.com> | 2020-04-08 14:20:57 -0700 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2020-04-09 18:33:07 +0000 |
commit | 9e51c9ac3afb411a26639585a8c8574fdba24627 (patch) | |
tree | 1e56fddd4e95a55bf547e014d7ee168824c9e313 /tests/test_rfc4108.py | |
parent | eeb43cc103f86efb51a0be45c93198e8364511c7 (diff) | |
parent | 87e78d03b7b7f9f35afdf7fe85fe55410e5be4ab (diff) | |
download | pyasn1-modules-9e51c9ac3afb411a26639585a8c8574fdba24627.tar.gz |
Upgrade python/pyasn1-modules to v0.2.8
Exempt-From-Owner-Approval: Upgrade library
Change-Id: I2ff4d2fc587b3443fe8162de4f3fee4c648becf0
Diffstat (limited to 'tests/test_rfc4108.py')
-rw-r--r-- | tests/test_rfc4108.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/test_rfc4108.py b/tests/test_rfc4108.py index aa5dfd2..272558c 100644 --- a/tests/test_rfc4108.py +++ b/tests/test_rfc4108.py @@ -74,7 +74,7 @@ dsnhVtIdkPtfJIvcYteYJg== attribute_list.append(attr['attrType']) if attr['attrType'] == rfc4108.id_aa_targetHardwareIDs: av, rest = der_decode(attr['attrValues'][0], - asn1Spec=rfc4108.TargetHardwareIdentifiers()) + asn1Spec=rfc4108.TargetHardwareIdentifiers()) assert len(av) == 2 for oid in av: assert '1.3.6.1.4.1.221121.1.1.' in oid.prettyPrint() @@ -86,12 +86,9 @@ dsnhVtIdkPtfJIvcYteYJg== def testOpenTypes(self): substrate = pem.readBase64fromText(self.pem_text) - - rfc5652.cmsContentTypesMap.update(rfc4108.cmsContentTypesMapUpdate) - rfc5652.cmsAttributesMap.update(rfc4108.cmsAttributesMapUpdate) asn1Object, rest = der_decode(substrate, - asn1Spec=self.asn1Spec, - decodeOpenTypes=True) + asn1Spec=self.asn1Spec, + decodeOpenTypes=True) assert not rest assert asn1Object.prettyPrint() assert der_encode(asn1Object) == substrate |