diff options
| author | Yuval Adam <_@yuv.al> | 2018-03-12 10:20:39 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-03-12 10:20:39 +0200 |
| commit | 4ccc60ad95b6089934a55b0cbb46d63097db90cc (patch) | |
| tree | bc87724603561cf265fed6c951879f3b03a2498d | |
| parent | 6cb60d7407efac2c916cd2b42900260becab003c (diff) | |
Improve string value test
| -rw-r--r-- | tests/test_parse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py index 2336e3a..aec69fe 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -17,7 +17,7 @@ class TestParse(object): def test_string_value(self): s = 'abcdefghij' - vs = ViewState(raw=b'\xff\x01\x05\x0a' + s.encode()) + vs = ViewState(raw=b'\xff\x01\x05' + bytes([len(s)]) + s.encode()) assert vs.decode() == s def test_simple_dict(self): |
