You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# -*- coding: utf-8 -*-
|
|
|
|
import msgpack
|
|
from testclient import testclient
|
|
|
|
# Sample MessagePack data
|
|
msgpack_data = {"field1": "value1", "field2": "value2"}
|
|
|
|
testclient(
|
|
"application/msgpack",
|
|
lambda: msgpack.packb(msgpack_data),
|
|
lambda content: msgpack.unpackb(content),
|
|
)
|