示例#1
0
 def testChat(self):
     text = "Hi there !"
     buff = Buffer()
     buff.buff = buff.pack_chat(text)
     self.assertTrue(text == buff.unpack_chat())
示例#2
0
def test_pack_chat():
    assert Buffer.pack_chat("spam") == b'\x10{"text": "spam"}'
示例#3
0
文件: tests.py 项目: aaps/quarry
 def testChat(self):
     text = "Hi there !"
     buff = Buffer()
     buff.buff = buff.pack_chat(text)
     self.assertTrue(text == buff.unpack_chat())