]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - tests/test_pyderasn.py
BitString ''H notation support
[pyderasn.git] / tests / test_pyderasn.py
index 62954d78762a162f901f33a649b957b0c8063e6b..a07c495ebd5d838219b6b2be69cc011911f734cf 100644 (file)
@@ -1519,8 +1519,7 @@ class TestBitString(CommonMixin, TestCase):
             self.assertEqual(len(encoded), obj.tlvlen)
 
     def test_x690_vector(self):
-        vector_payload = hexdec("0A3B5F291CD0")
-        vector = BitString((len(vector_payload) * 8 - 4, vector_payload))
+        vector = BitString("'0A3B5F291CD'H")
         obj, tail = BitString().decode(hexdec("0307040A3B5F291CD0"))
         self.assertSequenceEqual(tail, b"")
         self.assertEqual(obj, vector)