Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Bonnell committed Jan 3, 2024
1 parent 519f0ea commit ad4f24b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ def test_long_tag():

with pytest.raises(PyAsn1Error):
decoded, _ = decode_der(octet_string, asn1Spec=univ.OctetString())


def test_tag_mismatch():
octet_string = b'\x04\x01\x01'

with pytest.raises(PyAsn1Error):
decoded, _ = decode_der(octet_string, asn1Spec=univ.BitString())

0 comments on commit ad4f24b

Please sign in to comment.