diff options
| author | Legrandin <gooksankoo@hoiptorrow.mailexpire.com> | 2011-10-19 23:02:58 +0200 |
|---|---|---|
| committer | Legrandin <gooksankoo@hoiptorrow.mailexpire.com> | 2011-10-19 23:02:58 +0200 |
| commit | 8390495a9d7c574213fbff51af6f2aea249d81c7 (patch) | |
| tree | ebd647848d44f9ad152b1766a42f756c0b47638e /lib/Crypto/SelfTest/Util | |
| parent | c22fa18c0dedb43a8b19dcb9b29512ba59e1764b (diff) | |
| download | pycrypto-8390495a9d7c574213fbff51af6f2aea249d81c7.tar.gz | |
Further fixed for python 3
Diffstat (limited to 'lib/Crypto/SelfTest/Util')
| -rw-r--r-- | lib/Crypto/SelfTest/Util/test_asn1.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Crypto/SelfTest/Util/test_asn1.py b/lib/Crypto/SelfTest/Util/test_asn1.py index 2166d11..578dabe 100644 --- a/lib/Crypto/SelfTest/Util/test_asn1.py +++ b/lib/Crypto/SelfTest/Util/test_asn1.py @@ -41,6 +41,10 @@ class DerObjectTests(unittest.TestCase): self.assertEquals(der.encode(), b('\x33\x01\x45')) # Invariant self.assertEquals(der.encode(), b('\x33\x01\x45')) + # Initialize with numerical tag + der = DerObject(b(0x33)) + der.payload = b('\x45') + self.assertEquals(der.encode(), b('\x33\x01\x45')) def testObjEncode2(self): # Known types |
