summaryrefslogtreecommitdiff
path: root/lib/Crypto/SelfTest/Util
diff options
context:
space:
mode:
authorLegrandin <gooksankoo@hoiptorrow.mailexpire.com>2011-10-19 23:02:58 +0200
committerLegrandin <gooksankoo@hoiptorrow.mailexpire.com>2011-10-19 23:02:58 +0200
commit8390495a9d7c574213fbff51af6f2aea249d81c7 (patch)
treeebd647848d44f9ad152b1766a42f756c0b47638e /lib/Crypto/SelfTest/Util
parentc22fa18c0dedb43a8b19dcb9b29512ba59e1764b (diff)
downloadpycrypto-8390495a9d7c574213fbff51af6f2aea249d81c7.tar.gz
Further fixed for python 3
Diffstat (limited to 'lib/Crypto/SelfTest/Util')
-rw-r--r--lib/Crypto/SelfTest/Util/test_asn1.py4
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