diff options
Diffstat (limited to 'tests/test_core.py')
| -rw-r--r-- | tests/test_core.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 617a9a7..a1a39a4 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -40,6 +40,11 @@ class TestViewState(object): vs.raw = b'\xff\x01\x18\x02\x05\x01a\x05\x01b\x05\x01c\x05\x01d' assert vs.decode() == {'a': 'b', 'c': 'd'} + def test_parse_simple_list(self): + vs = ViewState() + vs.raw = b'\xff\x01\x16\x05\x05\x01a\x05\x01b\x05\x01c\x05\x01d\x05\x01e' + assert vs.decode() == ['a', 'b', 'c', 'd', 'e'] + def test_parse_simple_pair(self): vs = ViewState() vs.raw = b'\xff\x01\x0f\x67\x68' |
