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