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