コード例 #1
0
ファイル: test_protocol.py プロジェクト: lyapun/advanced-01
 def test_pack(self):
     packet = Quit()
     self.assertEqual(b'\x00\x00\x00\x013', packet.pack())
コード例 #2
0
 def test_quit(self):
     command = Quit()
     response = self._send_command(command.pack())
     self.assertEqual(AckQuit().pack(), response)
コード例 #3
0
ファイル: test_server01.py プロジェクト: lyapun/advanced-01
 def test_quit(self):
     command = Quit()
     response = self._send_command(command.pack())
     self.assertEqual(AckQuit().pack(), response)