diff options
Diffstat (limited to 'tests/test_rfc4073.py')
-rw-r--r-- | tests/test_rfc4073.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_rfc4073.py b/tests/test_rfc4073.py index bdc04c4..f600920 100644 --- a/tests/test_rfc4073.py +++ b/tests/test_rfc4073.py @@ -11,7 +11,7 @@ import sys from pyasn1.codec.der.decoder import decode as der_decode from pyasn1.codec.der.encoder import encode as der_encode -from pyasn1.type import univ +from pyasn1.compat.octets import str2octs from pyasn1_modules import pem from pyasn1_modules import rfc2634 @@ -139,7 +139,7 @@ buWO3egPDL8Kf7tBhzjIKLw= next_ci = ci['content']['content'] assert next_ci['contentType'] in rfc5652.cmsContentTypesMap.keys() assert next_ci['contentType'] == rfc5652.id_data - assert 'Content-Type: text' in next_ci['content'] + assert str2octs('Content-Type: text') in next_ci['content'] for attr in ci['content']['attrs']: assert attr['attrType'] in rfc5652.cmsAttributesMap.keys() |