diff --git a/tests/test_framing.py b/tests/test_framing.py index 04cdcdc..2de6f9f 100644 --- a/tests/test_framing.py +++ b/tests/test_framing.py @@ -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'))