Exemple #1
0
 def test_quit(self):
     command = Quit()
     response = self._send_command(command.pack())
     self.assertEqual(AckQuit().pack(), response)
Exemple #2
0
 def test_init(self):
     packet = Quit()
     self.assertEqual(QUIT, packet.command)
Exemple #3
0
 def test_pack(self):
     packet = Quit()
     self.assertEqual(b'\x00\x00\x00\x013', packet.pack())
Exemple #4
0
 def test_quit(self):
     command = Quit()
     response = self._send_command(command.pack())
     self.assertEqual(AckQuit().pack(), response)