From ff4b375fc6598e36aaef255f550bdaf2f4080dc5 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Sun, 26 Feb 2017 20:43:24 +0100 Subject: BER/CER/DER value encoders refactored to produce either tuple of bytes or octetstream depending on what is more optimal --- tests/codec/ber/test_decoder.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tests/codec/ber/test_decoder.py') diff --git a/tests/codec/ber/test_decoder.py b/tests/codec/ber/test_decoder.py index c1852c4..5bba716 100644 --- a/tests/codec/ber/test_decoder.py +++ b/tests/codec/ber/test_decoder.py @@ -16,16 +16,6 @@ from pyasn1.compat.octets import ints2octs, str2octs, null from pyasn1.error import PyAsn1Error -class BadAsn1SpecTestCase(unittest.TestCase): - def testBadSpec(self): - try: - decoder.decode(ints2octs((48, 2, 5, 0)), asn1Spec='not an Asn1Item') - except PyAsn1Error: - pass - else: - assert 0, 'Invalid asn1Spec accepted' - - class LargeTagDecoderTestCase(unittest.TestCase): def testLargeTag(self): assert decoder.decode(ints2octs((127, 141, 245, 182, 253, 47, 3, 2, 1, 1))) == (1, null) -- cgit v1.2.3