def test_no_endpoint(self): os.environ[common.ENV_CONFIGNAME] = configs.CurrentPython().cfgname() with self.assertRaises(SystemExit): server.start_server()
def test_no_config_name(self): with self.assertRaises(SystemExit): server.start_server()