diff options
author | Russ Housley <housley@vigilsec.com> | 2019-09-08 09:41:53 -0400 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-09-08 15:41:53 +0200 |
commit | 15bc77911a8394c1814456947d6f0ddd85b0e82e (patch) | |
tree | 481de5d756f2bc259fec367fbca62f0a47bdebb8 /tests/test_rfc4108.py | |
parent | 674015081b7a2d157a832f1ba6a0f7400b859dc4 (diff) | |
download | pyasn1-modules-15bc77911a8394c1814456947d6f0ddd85b0e82e.tar.gz |
Add support for RFC 3894 and openTypes map cleanup (#62)
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 |