diff options
| author | Yuval Adam <_@yuv.al> | 2018-02-19 22:18:15 +0100 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-02-19 22:18:15 +0100 |
| commit | 647ac4e5507f458b02883c7b84a57cfe971b732d (patch) | |
| tree | b0bb573192e8f6a7e9c5726cfe4e55fd4ec2a57f /tests/test_core.py | |
| parent | 945dadfae8047c8c74d8b2b50486156198926568 (diff) | |
Add basic dict support
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 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' |
