Module Expr Str Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore ListLoad Dict Str Str Dict Str Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore ListLoad Dict Str Str Dict Str Str Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Str Dict Str Str Num Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Str Dict Str Str Num Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad Str decorator_list
N/A N/A 
Copyright 2015 Hewlett-Packard

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

 N/A json N/A unittest mock Mock patch freezer.apiclient exceptions freezer.apiclient jobs TestJobManager N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self mock_client N/A Mock N/A N/A self mock_response N/A Mock N/A N/A N/A self mock_client endpoint http://testendpoint:9999 N/A N/A N/A self mock_client auth_token testtoken N/A N/A self headers N/A X-Auth-Token testtoken N/A N/A N/A self mock_client client_id test_client_id_78900987 N/A N/A self job_manager N/A N/A jobs JobManager N/A self mock_client N/A test_create N/A N/A self mock_requests N/A N/A N/A N/A N/A self assertEqual http://testendpoint:9999/v1/jobs/ N/A N/A self job_manager endpoint N/A N/A N/A self assertEqual N/A X-Auth-Token testtoken N/A N/A self job_manager headers N/A N/A patch freezer.apiclient.jobs.requests test_create_ok N/A N/A self mock_requests N/A N/A N/A N/A N/A self mock_response status_code 201 N/A N/A N/A N/A self mock_response json return_value N/A job_id qwerqwer N/A N/A N/A mock_requests post return_value N/A self mock_response N/A retval N/A N/A N/A self job_manager create N/A job metadata N/A N/A N/A self assertEqual qwerqwer retval N/A N/A patch freezer.apiclient.jobs.requests test_create_adds_client_id_if_not_provided N/A N/A self mock_requests mock_json N/A N/A N/A N/A N/A self mock_response status_code 201 N/A N/A N/A N/A self mock_response json return_value N/A job_id qwerqwer N/A N/A N/A mock_json dumps return_value N/A job mocked N/A N/A N/A mock_requests post return_value N/A self mock_response N/A retval N/A N/A N/A self job_manager create N/A job metadata N/A N/A N/A N/A mock_json dumps assert_called_with N/A job client_id metadata test_client_id_78900987 N/A N/A N/A self assertEqual qwerqwer retval N/A N/A patch freezer.apiclient.jobs.json N/A patch freezer.apiclient.jobs.requests test_create_leaves_provided_client_id N/A N/A self mock_requests mock_json N/A N/A N/A N/A N/A self mock_response status_code 201 N/A N/A N/A N/A self mock_response json return_value N/A job_id qwerqwer N/A N/A N/A mock_json dumps return_value N/A job mocked N/A N/A N/A mock_requests post return_value N/A self mock_response N/A retval N/A N/A N/A self job_manager create N/A job client_id metadata parmenide N/A N/A N/A N/A mock_json dumps assert_called_with N/A job client_id metadata parmenide N/A N/A N/A self assertEqual qwerqwer retval N/A N/A patch freezer.apiclient.jobs.json N/A patch freezer.apiclient.jobs.requests test_create_fail_when_api_return_error_code N/A N/A self mock_requests N/A N/A N/A N/A N/A self mock_response status_code 500 N/A N/A N/A mock_requests post return_value N/A self mock_response N/A N/A N/A self assertRaises N/A exceptions ApiClientException N/A N/A self job_manager create N/A job metadata N/A N/A patch freezer.apiclient.jobs.requests test_delete_ok N/A N/A self mock_requests N/A N/A N/A N/A N/A self mock_response status_code 204 N/A N/A N/A mock_requests delete return_value N/A self mock_response N/A retval N/A N/A N/A self job_manager delete test_job_id N/A N/A N/A self assertIsNone retval N/A N/A patch freezer.apiclient.jobs.requests test_delete_fail N/A N/A self mock_requests N/A N/A N/A N/A N/A self mock_response status_code 500 N/A N/A N/A mock_requests delete return_value N/A self mock_response N/A N/A N/A self assertRaises N/A exceptions ApiClientException N/A N/A self job_manager delete test_job_id N/A N/A patch freezer.apiclient.jobs.requests test_get_ok N/A N/A self mock_requests N/A N/A N/A N/A N/A self mock_response status_code 200 N/A N/A N/A N/A self mock_response json return_value N/A job_id qwerqwer N/A N/A N/A mock_requests get return_value N/A self mock_response N/A retval N/A N/A N/A self job_manager get test_job_id N/A N/A N/A self assertEqual N/A job_id qwerqwer retval N/A N/A patch freezer.apiclient.jobs.requests test_get_fails_on_error_different_from_404 N/A N/A self mock_requests N/A N/A N/A N/A N/A self mock_response status_code 500 N/A N/A N/A mock_requests get return_value N/A self mock_response N/A N/A N/A self assertRaises N/A exceptions ApiClientException N/A N/A self job_manager get test_job_id N/A N/A patch freezer.apiclient.jobs.requests test_get_none N/A N/A self mock_requests N/A N/A N/A N/A N/A self mock_response status_code 404 N/A N/A N/A mock_requests get return_value N/A self mock_response N/A retval N/A N/A N/A self job_manager get test_job_id N/A N/A N/A self assertIsNone retval N/A N/A patch freezer.apiclient.jobs.requests test_list_ok N/A N/A self mock_requests N/A N/A N/A N/A N/A self mock_response status_code 200 N/A job_list N/A N/A job_id_0 bomboloid N/A job_id_1 asdfasdf N/A N/A N/A N/A self mock_response json return_value N/A jobs job_list N/A N/A N/A mock_requests get return_value N/A self mock_response N/A retval N/A N/A N/A self job_manager list N/A N/A N/A self assertEqual job_list retval N/A N/A patch freezer.apiclient.jobs.requests test_list_error N/A N/A self mock_requests N/A N/A N/A N/A N/A self mock_response status_code 404 N/A job_list N/A N/A job_id_0 bomboloid N/A job_id_1 asdfasdf N/A N/A N/A N/A self mock_response json return_value N/A clients job_list N/A N/A N/A mock_requests get return_value N/A self mock_response N/A N/A N/A self assertRaises N/A exceptions ApiClientException N/A N/A self job_manager list N/A N/A patch freezer.apiclient.jobs.requests test_update_ok N/A N/A self mock_requests N/A N/A N/A N/A N/A self mock_response status_code 200 N/A N/A N/A N/A self mock_response json return_value N/A patch version job_id N/A status bamboozled 12 d454beec-1f3c-4d11-aa1a-404116a40502 N/A N/A N/A mock_requests patch return_value N/A self mock_response N/A retval N/A N/A N/A self job_manager update d454beec-1f3c-4d11-aa1a-404116a40502 N/A status bamboozled N/A N/A N/A self assertEqual 12 retval N/A N/A patch freezer.apiclient.jobs.requests test_update_raise_MetadataUpdateFailure_when_api_return_error_code N/A N/A self mock_requests N/A N/A N/A N/A N/A N/A self mock_response json return_value N/A patch version job_id N/A status bamboozled 12 d454beec-1f3c-4d11-aa1a-404116a40502 N/A N/A N/A self mock_response status_code 404 N/A N/A N/A self mock_response text {"title": "Not Found","description":"No document found with ID d454beec-1f3c-4d11-aa1a-404116a40502x"} N/A N/A N/A mock_requests patch return_value N/A self mock_response N/A N/A N/A self assertRaises N/A exceptions ApiClientException N/A N/A self job_manager update d454beec-1f3c-4d11-aa1a-404116a40502 N/A status bamboozled N/A N/A patch freezer.apiclient.jobs.requests test_start_job_posts_proper_data N/A N/A self mock_requests N/A N/A N/A job_id jobdfsfnqwerty1234 N/A N/A N/A self mock_response status_code 202 N/A N/A N/A N/A self mock_response json return_value N/A result success N/A N/A N/A mock_requests post return_value N/A self mock_response N/A endpoint N/A N/A {0}/v1/jobs/{1}/event format N/A N/A self mock_client endpoint job_id N/A data N/A start None N/A retval N/A N/A N/A self job_manager start_job job_id N/A N/A N/A self assertEqual N/A result success retval N/A args N/A N/A N/A mock_requests post call_args N/A 0 N/A kwargs N/A N/A N/A mock_requests post call_args N/A 1 N/A N/A N/A self assertEquals endpoint N/A args N/A 0 N/A N/A N/A self assertEquals data N/A N/A json loads N/A kwargs N/A data N/A N/A N/A self assertEquals N/A self headers N/A kwargs N/A headers N/A N/A patch freezer.apiclient.jobs.requests test_start_job_raise_ApiClientException_when_api_return_error_code N/A N/A self mock_requests N/A N/A N/A job_id jobdfsfnqwerty1234 N/A N/A N/A self mock_response status_code 500 N/A N/A N/A N/A self mock_response json return_value N/A result success N/A N/A N/A mock_requests post return_value N/A self mock_response N/A N/A N/A self assertRaises N/A exceptions ApiClientException N/A N/A self job_manager start_job job_id N/A N/A patch freezer.apiclient.jobs.requests test_stop_job_posts_proper_data N/A N/A self mock_requests N/A N/A N/A job_id jobdfsfnqwerty1234 N/A N/A N/A self mock_response status_code 202 N/A N/A N/A N/A self mock_response json return_value N/A result success N/A N/A N/A mock_requests post return_value N/A self mock_response N/A endpoint N/A N/A {0}/v1/jobs/{1}/event format N/A N/A self mock_client endpoint job_id N/A data N/A stop None N/A retval N/A N/A N/A self job_manager stop_job job_id N/A N/A N/A self assertEqual N/A result success retval N/A args N/A N/A N/A mock_requests post call_args N/A 0 N/A kwargs N/A N/A N/A mock_requests post call_args N/A 1 N/A N/A N/A self assertEquals endpoint N/A args N/A 0 N/A N/A N/A self assertEquals data N/A N/A json loads N/A kwargs N/A data N/A N/A N/A self assertEquals N/A self headers N/A kwargs N/A headers N/A N/A patch freezer.apiclient.jobs.requests test_stop_job_raise_ApiClientException_when_api_return_error_code N/A N/A self mock_requests N/A N/A N/A job_id jobdfsfnqwerty1234 N/A N/A N/A self mock_response status_code 500 N/A N/A N/A N/A self mock_response json return_value N/A result success N/A N/A N/A mock_requests post return_value N/A self mock_response N/A N/A N/A self assertRaises N/A exceptions ApiClientException N/A N/A self job_manager start_job job_id N/A N/A patch freezer.apiclient.jobs.requests test_abort_job_posts_proper_data N/A N/A self mock_requests N/A N/A N/A job_id jobdfsfnqwerty1234 N/A N/A N/A self mock_response status_code 202 N/A N/A N/A N/A self mock_response json return_value N/A result success N/A N/A N/A mock_requests post return_value N/A self mock_response N/A endpoint N/A N/A {0}/v1/jobs/{1}/event format N/A N/A self mock_client endpoint job_id N/A data N/A abort None N/A retval N/A N/A N/A self job_manager abort_job job_id N/A N/A N/A self assertEqual N/A result success retval N/A args N/A N/A N/A mock_requests post call_args N/A 0 N/A kwargs N/A N/A N/A mock_requests post call_args N/A 1 N/A N/A N/A self assertEquals endpoint N/A args N/A 0 N/A N/A N/A self assertEquals data N/A N/A json loads N/A kwargs N/A data N/A N/A N/A self assertEquals N/A self headers N/A kwargs N/A headers N/A N/A patch freezer.apiclient.jobs.requests test_abort_job_raise_ApiClientException_when_api_return_error_code N/A N/A self mock_requests N/A N/A N/A job_id jobdfsfnqwerty1234 N/A N/A N/A self mock_response status_code 500 N/A N/A N/A N/A self mock_response json return_value N/A result success N/A N/A N/A mock_requests post return_value N/A self mock_response N/A N/A N/A self assertRaises N/A exceptions ApiClientException N/A N/A self job_manager abort_job job_id N/A N/A patch freezer.apiclient.jobs.requests N/A