]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - tests/test_pyderasn.py
OID test vector from Go
[pyderasn.git] / tests / test_pyderasn.py
index c6621c94bb8eb467fbc60f461c9abe3e5b7dc642..73eea21c6151a8ac3979f103eb42c3b7632cf0b5 100644 (file)
@@ -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],