예제 #1
0
 def test_loads_unknown_kind(self):
     with self.assertRaisesRegex(ValueError, 'Unknown msg kind 254'):
         ConnectMsg.loads(b'\x00\x00\x00\x11\xfe'+self.uuid.bytes)
예제 #2
0
 def test_loads_unknown_kind(self):
     with self.assertRaisesRegex(ValueError, 'Unknown msg kind 254'):
         ConnectMsg.loads(b'\x00\x00\x00\x11\xfe' + self.uuid.bytes)
예제 #3
0
 def test_loads(self):
     msg = ConnectMsg.loads(b'\x00\x00\x00\x15\x01'+self.uuid.bytes)
     self.assertEqual(self.uuid, msg.clientid)
예제 #4
0
 def test_loads(self):
     msg = ConnectMsg.loads(b'\x00\x00\x00\x15\x01' + self.uuid.bytes)
     self.assertEqual(self.uuid, msg.clientid)