aboutsummaryrefslogtreecommitdiff
path: root/tests/test_rfc4073.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_rfc4073.py')
-rw-r--r--tests/test_rfc4073.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/test_rfc4073.py b/tests/test_rfc4073.py
index 34cebea..576cc7b 100644
--- a/tests/test_rfc4073.py
+++ b/tests/test_rfc4073.py
@@ -83,8 +83,6 @@ buWO3egPDL8Kf7tBhzjIKLw=
return asn1Object
- rfc5652.cmsAttributesMap.update(rfc2634.ESSAttributeMap)
- rfc5652.cmsContentTypesMap.update(rfc4073.cmsContentTypesMapUpdate)
layers = rfc5652.cmsContentTypesMap
getNextLayer = {
@@ -120,14 +118,10 @@ buWO3egPDL8Kf7tBhzjIKLw=
this_layer = getNextLayer[this_layer](asn1Object)
def testOpenTypes(self):
-
substrate = pem.readBase64fromText(self.pem_text)
-
- rfc5652.cmsAttributesMap.update(rfc2634.ESSAttributeMap)
- rfc5652.cmsContentTypesMap.update(rfc4073.cmsContentTypesMapUpdate)
asn1Object, rest = der_decode(substrate,
- asn1Spec=rfc5652.ContentInfo(),
- decodeOpenTypes=True)
+ asn1Spec=rfc5652.ContentInfo(),
+ decodeOpenTypes=True)
assert not rest
assert asn1Object.prettyPrint()
assert der_encode(asn1Object) == substrate
@@ -153,4 +147,4 @@ if __name__ == '__main__':
import sys
result = unittest.TextTestRunner(verbosity=2).run(suite)
- sys.exit(not result.wasSuccessful())
+ sys.exit(not result.wasSuccessful()) \ No newline at end of file