diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-08-28 00:37:59 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-08-28 00:37:59 +0200 |
commit | 67893143133a9f76fd98b812df0982017cd05833 (patch) | |
tree | 77486af07527178d0f247dddf8d6d3619054248b /tests | |
parent | 1395d4379e8f646839fd2bf52d8a58bc977b3b28 (diff) | |
download | pyasn1-67893143133a9f76fd98b812df0982017cd05833.tar.gz |
fixed CharType(OctetStringType()) instantiation
Diffstat (limited to 'tests')
-rw-r--r-- | tests/type/test_char.py | 5 |
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' |