summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-03-09 11:23:18 +0200
committerYuval Adam <_@yuv.al>2018-03-09 11:23:18 +0200
commit519590839ec777b5b95a7779180fba9a0d03c05a (patch)
tree0fc3f8b31047edef46203fc6068f6a5e675b9348 /tests
parentc940933e2183e3d23b57212d187dabf201b4cf4f (diff)
Add triplet support
Diffstat (limited to 'tests')
-rw-r--r--tests/test_parse.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py
index bc213eb..862cf24 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -32,6 +32,10 @@ class TestParse(object):
vs = ViewState(raw=b'\xff\x01\x0f\x67\x68')
assert vs.decode() == (True, False)
+ def test_simple_triplet(self):
+ vs = ViewState(raw=b'\xff\x01\x10\x67\x68\x67')
+ assert vs.decode() == (True, False, True)
+
def test_complex_pair(self):
vs = ViewState()
vs.raw = b'\xff\x01\x0f\x67\x0f\x68\x66'