Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add BOOLEAN to simple_test
  • Loading branch information
samrushing committed Mar 14, 2013
1 parent 5d0d306 commit ad36b8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions coro/asn1/test/t0.py
Expand Up @@ -17,9 +17,11 @@ def runTest (self):
SET (INTEGER(34), INTEGER(19), OCTET_STRING('fishing line')), SET (INTEGER(34), INTEGER(19), OCTET_STRING('fishing line')),
OBJID ([2,3,4,5,6,88]), OBJID ([2,3,4,5,6,88]),
OCTET_STRING ("spaghetti"), 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 (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'], 42)) self.assertEqual (decode (x), ([[34, 19, 'fishing line'], ('oid', [2, 3, 4, 5, 6, 88]), 'spaghetti', True, False], 48))


# www.google.com cert # www.google.com cert
google_cert = """-----BEGIN CERTIFICATE----- google_cert = """-----BEGIN CERTIFICATE-----
Expand Down

0 comments on commit ad36b8b

Please sign in to comment.