def _run_server(self, server_args): if sys.version_info[0] == 3: # pragma: no cover asyncio.set_event_loop(asyncio.new_event_loop()) self.server_event_loop = IOLoop.current() server.main(server_args)
def test_server_entry_config_error(self): server_args = ['--config=absent.cfg'] rc = server.main((server_args), ) assert_equal(rc, 2)
def test_server_entry_config_error(self): server_args = ['--config=absent.cfg'] rc = server.main((server_args),) assert_equal(rc, 2)
def test_server_entry_config_error(self): """Test that starting a server with a bad config fail raturns an error.""" server_args = ['--config=absent.cfg'] rc = server.main((server_args),) assert rc == 2