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