def test_get_api_definition(self): api_info = testcase.get_test_definition("get_token", "api") self.assertEqual("/api/get-token", api_info["request"]["url"]) self.assertIn("get_token", testcase.test_def_overall_dict["api"]) with self.assertRaises(ApiNotFound): testcase.get_test_definition("api_not_exist", "api")
def test_get_api_definition(self): api_info = testcase.get_test_definition("get_token", "api") self.assertEqual("/api/get-token", api_info["request"]["url"]) self.assertIn("get_token", testcase.test_def_overall_dict["api"]) with self.assertRaises(ApiNotFound): testcase.get_test_definition("api_not_exist", "api")