def __init__(self, name, target_ip, target_port, message_formatter, buffer_size=1024): Client.__init__(self, name, target_ip, target_port, message_formatter) self.buffer_size = buffer_size
def test_client_instanciation(self): expected_name = 'UAVClient' expected_ip = 'localhost' expected_port = 5555 message_formatter = Formatter() client = Client(expected_name,expected_ip,expected_port,message_formatter) self.assertEqual(client.name, expected_name) self.assertEqual(client.target_ip, expected_ip) self.assertEqual(client.target_port, expected_port) self.assertTrue(client.message_formatter is not None and isinstance(client.message_formatter, Formatter) )
def __init__(self,name,target_ip,target_port,message_formatter,buffer_size=1024): Client.__init__(self, name,target_ip,target_port,message_formatter) self.buffer_size = buffer_size
def __init__(self,name,target_ip,target_port,message_formatter): Client.__init__(self, name,target_ip,target_port,message_formatter)
def __init__(self, name, target_ip, target_port, message_formatter): Client.__init__(self, name, target_ip, target_port, message_formatter)