コード例 #1
0
    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")
コード例 #2
0
    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")