def test_decode_real_error(raw, value): decoder = BERDecoder() with pytest.raises(Exception): assert decoder.parse_real(raw) == value
def test_decode_real(raw, value): decoder = BERDecoder() assert decoder.parse_real(raw) == value