def test_quit(self): command = Quit() response = self._send_command(command.pack()) self.assertEqual(AckQuit().pack(), response)
def test_init(self): packet = Quit() self.assertEqual(QUIT, packet.command)
def test_pack(self): packet = Quit() self.assertEqual(b'\x00\x00\x00\x013', packet.pack())