mirror of
https://github.com/romanz/amodem.git
synced 2026-02-06 08:38:06 +08:00
framing: fix UT
This commit is contained in:
@@ -45,6 +45,8 @@ def test_fail():
|
||||
def test_missing():
|
||||
f = framing.Framer()
|
||||
with pytest.raises(ValueError):
|
||||
list(f.decode(b'\x00'))
|
||||
list(f.decode(b''))
|
||||
with pytest.raises(ValueError):
|
||||
list(f.decode(b'\x01\x02\x03\x04'))
|
||||
list(f.decode(b'\x01'))
|
||||
with pytest.raises(ValueError):
|
||||
list(f.decode(b'\xff'))
|
||||
|
||||
Reference in New Issue
Block a user