def test_pack(self): packet = Finish() self.assertEqual(b'\x00\x00\x00\x015', packet.pack())
def test_finish(self): command = Finish() response = self._send_command(command.pack()) self.assertEqual(AckFinish().pack(), response) self.server.wait() self.assertEqual(0, self.server.poll())
def test_init(self): packet = Finish() self.assertEqual(FINISH, packet.command)