diff options
| author | Yuval Adam <_@yuv.al> | 2018-03-12 10:18:15 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-03-12 10:18:15 +0200 |
| commit | 6cb60d7407efac2c916cd2b42900260becab003c (patch) | |
| tree | 6b10fecefeedca727eae8185addfae5b35b4aca5 /tests | |
| parent | e0d0884f96dbdf1c539c844bc71042c1103ecf50 (diff) | |
Add color parsing test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_parse.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py index 862cf24..2336e3a 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -36,6 +36,10 @@ class TestParse(object): vs = ViewState(raw=b'\xff\x01\x10\x67\x68\x67') assert vs.decode() == (True, False, True) + def test_unknown_color(self): + vs = ViewState(raw=b'\xff\x01\n\x01\x02') + assert vs.decode() == 'Color: unknown' # all colors are unknown for now + def test_complex_pair(self): vs = ViewState() vs.raw = b'\xff\x01\x0f\x67\x0f\x68\x66' |
