aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-08-28 00:37:59 +0200
committerIlya Etingof <etingof@gmail.com>2017-08-28 00:37:59 +0200
commit67893143133a9f76fd98b812df0982017cd05833 (patch)
tree77486af07527178d0f247dddf8d6d3619054248b /tests
parent1395d4379e8f646839fd2bf52d8a58bc977b3b28 (diff)
downloadpyasn1-67893143133a9f76fd98b812df0982017cd05833.tar.gz
fixed CharType(OctetStringType()) instantiation
Diffstat (limited to 'tests')
-rw-r--r--tests/type/test_char.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/type/test_char.py b/tests/type/test_char.py
index 4b17127..82b612b 100644
--- a/tests/type/test_char.py
+++ b/tests/type/test_char.py
@@ -61,11 +61,12 @@ class AbstractStringTestCase:
def testInit(self):
assert self.asn1Type(self.pythonString) == self.pythonString
assert self.asn1Type(self.pythonString.encode(self.encoding)) == self.pythonString
+ assert self.asn1Type(univ.OctetString(self.pythonString.encode(self.encoding))) == self.pythonString
assert self.asn1Type(self.initializer, encoding=self.encoding) == self.pythonString
def testInitFromAsn1(self):
- assert self.asn1Type(self.asn1Type(self.pythonString)) == self.pythonString
- assert self.asn1Type(univ.OctetString(self.pythonString.encode(self.encoding), encoding=self.encoding)) == self.pythonString
+ assert self.asn1Type(self.asn1Type(self.pythonString)) == self.pythonString
+ assert self.asn1Type(univ.OctetString(self.pythonString.encode(self.encoding), encoding=self.encoding)) == self.pythonString
def testAsOctets(self):
assert self.asn1String.asOctets() == self.pythonString.encode(self.encoding), 'testAsOctets() fails'