def test_send_to_custom_server(self): self.client = netutils.Client(config_path="networks/tests/config2.ini") self.client.send_message("A port to 20000 leagues")
def test_send_custom_message(self): self.client = netutils.Client(config_path="networks/tests/config.ini") self.client.send_message("Custom message send from space!")
def test_send_null_message(self): self.client = netutils.Client(config_path="networks/tests/config.ini") self.client.send_message(message=None)
def test_send_default(self): self.client = netutils.Client(config_path="networks/tests/config.ini") self.client.send_message()
def setup_class(self): self.dispatcher = dispatcher.Dispatcher(config_path="daemons/tests/config.ini") self.client = netutils.Client(config_path="daemons/tests/config.ini")
def __init__(self, config_path="config.ini"): self.client = netutils.Client(config_path)