summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-03-12 10:20:39 +0200
committerYuval Adam <_@yuv.al>2018-03-12 10:20:39 +0200
commit4ccc60ad95b6089934a55b0cbb46d63097db90cc (patch)
treebc87724603561cf265fed6c951879f3b03a2498d /tests
parent6cb60d7407efac2c916cd2b42900260becab003c (diff)
Improve string value test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_parse.py2
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):