From e2dd75dbdb3e01c726e6030bf21c7c86398632d7 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Mon, 19 Feb 2018 22:54:31 +0100 Subject: Add array support and pretty printing --- tests/test_core.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test_core.py') 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' -- cgit v1.3.1