From b5eb18384659ef1da9f72158626c6779c1214679 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Sat, 20 Jul 2019 13:03:14 +0200 Subject: Fix up unit tests following previous commit --- tests/test_rfc2634.py | 0 tests/test_rfc3560.py | 0 tests/test_rfc3709.py | 0 tests/test_rfc4073.py | 4 ++-- tests/test_rfc5035.py | 0 tests/test_rfc5083.py | 0 tests/test_rfc5480.py | 0 tests/test_rfc7191.py | 0 tests/test_rfc8226.py | 0 9 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 tests/test_rfc2634.py mode change 100755 => 100644 tests/test_rfc3560.py mode change 100755 => 100644 tests/test_rfc3709.py mode change 100755 => 100644 tests/test_rfc5035.py mode change 100755 => 100644 tests/test_rfc5083.py mode change 100755 => 100644 tests/test_rfc5480.py mode change 100755 => 100644 tests/test_rfc7191.py mode change 100755 => 100644 tests/test_rfc8226.py (limited to 'tests') diff --git a/tests/test_rfc2634.py b/tests/test_rfc2634.py old mode 100755 new mode 100644 diff --git a/tests/test_rfc3560.py b/tests/test_rfc3560.py old mode 100755 new mode 100644 diff --git a/tests/test_rfc3709.py b/tests/test_rfc3709.py old mode 100755 new mode 100644 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() diff --git a/tests/test_rfc5035.py b/tests/test_rfc5035.py old mode 100755 new mode 100644 diff --git a/tests/test_rfc5083.py b/tests/test_rfc5083.py old mode 100755 new mode 100644 diff --git a/tests/test_rfc5480.py b/tests/test_rfc5480.py old mode 100755 new mode 100644 diff --git a/tests/test_rfc7191.py b/tests/test_rfc7191.py old mode 100755 new mode 100644 diff --git a/tests/test_rfc8226.py b/tests/test_rfc8226.py old mode 100755 new mode 100644 -- cgit v1.2.3