From 3eb38566e734d6f5b274f4bb99fadb55f99ff2c7 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 12 Aug 2020 10:40:28 +0300 Subject: [PATCH] OID test vector from Go --- tests/test_pyderasn.py | 4 ++++ 1 file changed, 4 insertions(+) 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], -- 2.44.0