optimize exception type

This commit is contained in:
httprunner
2017-08-02 14:19:14 +08:00
parent cd27f325eb
commit a18c7bc62f
3 changed files with 11 additions and 15 deletions

View File

@@ -116,7 +116,7 @@ class TestResponse(ApiServerUnittest):
]
resp_obj = response.ResponseObject(resp)
with self.assertRaises(exception.ParamsError):
with self.assertRaises(exception.ParseResponseError):
resp_obj.extract_response(extract_binds_list)
extract_binds_list = [
@@ -124,7 +124,7 @@ class TestResponse(ApiServerUnittest):
]
resp_obj = response.ResponseObject(resp)
with self.assertRaises(exception.ParamsError):
with self.assertRaises(exception.ParseResponseError):
resp_obj.extract_response(extract_binds_list)
def test_extract_response_json_string(self):