def test_put_and_get_unexpected_json_schema(self): json_file = '%s/resources/test_function_multiple_put_and_get_unexpected_json_schema.json' % \ self.current_dir_path test_function_list = self.generate_test_function(json_file) with self.assertRaises(ValidationError): run_test_function_list(test_function_list, self)
def test_put_and_get(self): json_file = '%s/resources/test_function_multiple_put_and_get.json' % self.current_dir_path test_function_list = self.generate_test_function(json_file) run_test_function_list(test_function_list, self)
def test_put_unexpected_status_code(self): json_file = '%s/resources/test_function_single_put_unexpected_status_code.json' % self.current_dir_path test_function_list = self.generate_test_functions(json_file) with self.assertRaises(AssertionError): run_test_function_list(test_function_list, self)
def test_put_multi_params(self): json_file = '%s/resources/test_function_single_put_multi_params.json' % self.current_dir_path test_function_list = self.generate_test_functions(json_file) run_test_function_list(test_function_list, self)
def test_delete(self): json_file = '%s/resources/test_function_single_delete.json' % self.current_dir_path test_function_list = self.generate_test_functions(json_file) run_test_function_list(test_function_list, self)
def test_get_unexpected_timeout(self): json_file = '%s/resources/test_function_single_get_unexpected_timeout.json' % self.current_dir_path test_function_list = self.generate_test_functions(json_file) with self.assertRaises(Timeout): run_test_function_list(test_function_list, self)