From: Sergey Matveev Date: Wed, 12 Aug 2020 07:40:28 +0000 (+0300) Subject: OID test vector from Go X-Git-Tag: 8.2~4 X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=commitdiff_plain;h=3eb38566e734d6f5b274f4bb99fadb55f99ff2c7 OID test vector from Go --- diff --git a/tests/test_pyderasn.py b/tests/test_pyderasn.py index c6621c9..73eea21 100644 --- a/tests/test_pyderasn.py +++ b/tests/test_pyderasn.py @@ -3082,6 +3082,10 @@ class TestObjectIdentifier(CommonMixin, TestCase): data, ))) + def test_go_non_minimal_encoding(self): + with self.assertRaises(DecodeError): + ObjectIdentifier().decode(hexdec("060a2a80864886f70d01010b")) + def test_x690_vector(self): self.assertEqual( ObjectIdentifier().decode(hexdec("0603883703"))[0],