framing: fix UT

This commit is contained in:
Roman Zeyde
2014-12-30 17:00:18 +02:00
parent ad5e688547
commit 2c408907c4

View File

@@ -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'))