# coding: utf-8
-# PyDERASN -- Python ASN.1 DER codec with abstract structures
+# PyDERASN -- Python ASN.1 DER/BER codec with abstract structures
# Copyright (C) 2017-2018 Sergey Matveev <stargrave@stargrave.org>
#
# This program is free software: you can redistribute it and/or modify
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)