]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - tests/test_compli.py
Store OIDs as an array.array
[pyderasn.git] / tests / test_compli.py
index 8e0ff827480ca6e68404eb0f1f903f03f8b442e8..9996d84a1472137c1ab9e15e331a3f0dfc32535b 100644 (file)
@@ -139,7 +139,8 @@ class TestTestSuite(TestCase):
 
     def test_tc22(self):
         data = load_tc(22)
-        ObjectIdentifier().decode(data)
+        with assertRaisesRegex(self, DecodeError, "too huge value"):
+            ObjectIdentifier().decode(data)
 
     def test_tc23(self):
         data = load_tc(23)