Browse files

add BOOLEAN to simple_test

  • Loading branch information...
1 parent 5d0d306 commit ad36b8bfa896bd0402cebafebb55f883405145fb @samrushing samrushing committed Mar 14, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 coro/asn1/test/t0.py
View
6 coro/asn1/test/t0.py
@@ -17,9 +17,11 @@ def runTest (self):
SET (INTEGER(34), INTEGER(19), OCTET_STRING('fishing line')),
OBJID ([2,3,4,5,6,88]),
OCTET_STRING ("spaghetti"),
+ BOOLEAN(True),
+ BOOLEAN(False),
)
- self.assertEqual (x, '0(1\x14\x02\x01"\x02\x01\x13\x04\x0cfishing line\x06\x05S\x04\x05\x06X\x04\tspaghetti')
- self.assertEqual (decode (x), ([[34, 19, 'fishing line'], ('oid', [2, 3, 4, 5, 6, 88]), 'spaghetti'], 42))
+ self.assertEqual (x, '0.1\x14\x02\x01"\x02\x01\x13\x04\x0cfishing line\x06\x05S\x04\x05\x06X\x04\tspaghetti\x01\x01\xff\x01\x01\x00')
+ self.assertEqual (decode (x), ([[34, 19, 'fishing line'], ('oid', [2, 3, 4, 5, 6, 88]), 'spaghetti', True, False], 48))
# www.google.com cert
google_cert = """-----BEGIN CERTIFICATE-----

0 comments on commit ad36b8b

Please sign in to comment.