diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_core.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index a1a39a4..bfb6c4f 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -60,7 +60,7 @@ class TestViewState(object): assert vs.decode() == ((True, '1q2w3e'), 0) def test_parse_unknown(self): - vs = ViewState() - vs.raw = b'\xff\x01\x99\x99\x99' - assert vs.decode() == b'\x99\x99\x99' - + with pytest.raises(ViewStateException): + vs = ViewState() + vs.raw = b'\xff\x01\x99\x99\x99' + assert vs.decode() |
