diff options
Diffstat (limited to 'tests')
| -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 be4c587..617a9a7 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -35,6 +35,11 @@ class TestViewState(object): vs.raw = b'\xff\x01\x05\x0a' + s.encode() assert vs.decode() == s + def test_parse_simple_dict(self): + vs = ViewState() + 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_pair(self): vs = ViewState() vs.raw = b'\xff\x01\x0f\x67\x68' |
