diff options
| author | Yuval Adam <_@yuv.al> | 2020-02-01 13:53:42 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2020-02-01 13:53:42 +0200 |
| commit | 2ad4772b76dacb386c1b774eac8e4c9c8f2d26c0 (patch) | |
| tree | be41937d3f269ca53a134c28a2208e9c751200d1 /tests/test_parse.py | |
| parent | 1b5fadb7e676bf5036f73319359cd0e1c1ac3b95 (diff) | |
| parent | 7100e9aee3088c6cfc91bacc1580a9a371140407 (diff) | |
Merge branch 'master' of https://github.com/TiberiuD/viewstate into colors
Diffstat (limited to 'tests/test_parse.py')
| -rw-r--r-- | tests/test_parse.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py index fea1fd4..f5a0828 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -38,11 +38,13 @@ class TestParse(object): vs = ViewState(raw=b"\xff\x01\x10\x67\x68\x67") assert vs.decode() == (True, False, True) - @pytest.mark.skip(reason="Color parsing is not yet supported") def test_color(self): - vs = ViewState(raw=b"\xff\x01\n\x91\x01") + vs = ViewState(raw=b"\xff\x01\n\x91") assert vs.decode() == "Color: Salmon" + vs = ViewState(raw=b"\xff\x01\n\x8d\x01") + assert vs.decode() == "Color: Red" + def test_rgba(self): vs = ViewState(raw=b"\xff\x01\x09\x10\x20\x30\x40") assert vs.decode() == "RGBA(16,32,48,64)" |
