From dc32556983da688191cd943640b92da9a84cb333 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Sat, 16 Mar 2019 00:53:18 +0100 Subject: [PATCH] Add utf8 and binary data to msgpack test vector --- src/Test/TestMsgpack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Test/TestMsgpack.py b/src/Test/TestMsgpack.py index 3665a0a4..c8ca20cf 100644 --- a/src/Test/TestMsgpack.py +++ b/src/Test/TestMsgpack.py @@ -8,7 +8,7 @@ from util import StreamingMsgpack class TestMsgpack: - test_data = {"cmd": "fileGet", "params": {"site": "1Site"}} + test_data = {"cmd": "fileGet", "params": {"site": "1Site"}, "utf8": b'\xc3\xa1rv\xc3\xadzt\xc5\xb1r\xc5\x91'.decode("utf8"), "bin": b'p\x81zDhL\xf0O\xd0\xaf', "list": [b'p\x81zDhL\xf0O\xd0\xaf', b'p\x81zDhL\xf0O\xd0\xaf']} def testUnpackinkg(self): assert msgpack.unpackb(msgpack.packb(self.test_data)) == self.test_data