Пример #1
0
 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")
Пример #2
0
 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!")
Пример #3
0
 def test_send_null_message(self):
     self.client = netutils.Client(config_path="networks/tests/config.ini")
     self.client.send_message(message=None)
Пример #4
0
 def test_send_default(self):
     self.client = netutils.Client(config_path="networks/tests/config.ini")
     self.client.send_message()
Пример #5
0
 def setup_class(self):
     self.dispatcher = dispatcher.Dispatcher(config_path="daemons/tests/config.ini")
     self.client = netutils.Client(config_path="daemons/tests/config.ini")
Пример #6
0
 def __init__(self, config_path="config.ini"):
     self.client = netutils.Client(config_path)