Exemplo n.º 1
0
 def test_ping(self):
     command = Ping()
     response = self._send_command(command.pack())
     self.assertEqual(Pong().pack(), response)
Exemplo n.º 2
0
 def test_init(self):
     ping = Ping()
     self.assertEqual(PING, ping.command)
Exemplo n.º 3
0
 def test_pack(self):
     ping = Ping()
     self.assertEqual(b'\x00\x00\x00\x011', ping.pack())
Exemplo n.º 4
0
 def test_ping(self):
     command = Ping()
     response = self._send_command(command.pack())
     self.assertEqual(Pong().pack(), response)