예제 #1
0
 def test_format_output_on_json_request(self):
     request = self.request_generator.generate_request(command="error_string_output_type_json")
     response = wait_for_response(self.easy_client, request)
     assert_errored_request(response)
     assert json.loads(response.output) == {
         "message": "This is a string", "arguments": ["This is a string"], "attributes": {}
     }
예제 #2
0
 def test_parent_with_error_and_raise(self):
     request = self.request_generator.generate_request(command="say_error_and_raise", parameters={"message": "foo"})
     response = wait_for_response(self.easy_client, request)
     assert_errored_request(response)
     assert len(response.children) == 2
     for child_request in response.children:
         if child_request.system == "echo":
             assert_successful_request(child_request)
         elif child_request.system == "error":
             assert_errored_request(child_request)
예제 #3
0
 def test_error_on_request(self):
     request = self.request_generator.generate_request()
     response = wait_for_response(self.easy_client, request)
     assert_errored_request(response)