summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_core.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 2a3b11c..2a0078a 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -23,6 +23,10 @@ class TestViewState(object):
vs = ViewState(raw=b'\x01\x02')
vs.decode()
+ def test_parse_int_value(self):
+ vs = ViewState(raw=b'\xff\x01\x02\x88\x01')
+ assert vs.decode() == 136
+
def test_parse_const_value(self):
vs = ViewState(raw=b'\xff\x01\x67')
assert vs.decode() is True