Example #1
0
 def test_server_not_found(self):
     test = self
     throws_error_test(test, ServerNotFoundError,
                       self.service.get_server_not_found_response(),
                       save_batch, *self.args, **self.expected_kwargs)
Example #2
0
 def test_general_error(self):
     test = self
     throws_error_test(test, RequestError,
                       self.service.get_general_error_response(),
                       save_batch, *self.args, **self.expected_kwargs)
Example #3
0
 def test_unauthorized(self):
     test = self
     throws_error_test(test, RequestAuthorizationError,
                       self.service.get_unauthorized_response(), save_batch,
                       *self.args, **self.expected_kwargs)
Example #4
0
 def test_query_not_found(self):
     test = self
     throws_error_test(test, QueryNotFoundError,
                       self.service.get_query_not_found_response(),
                       load_batch, *self.args, **self.expected_kwargs)
Example #5
0
 def test_general_error(self):
     test = self
     throws_error_test(test, RequestError,
                       self.service.get_general_error_response(),
                       remove_from_role, *self.args, **self.expected_kwargs)
Example #6
0
 def test_query_not_found(self):
     test = self
     throws_error_test(test, QueryNotFoundError,
                       self.service.get_query_not_found_response(),
                       remove_from_role, *self.args, **self.expected_kwargs)
Example #7
0
 def test_general_error(self):
     test = self
     throws_error_test(test, RequestError,
                       self.service.get_general_error_response(),
                       deactivate_users, *self.args, **self.expected_kwargs)