コード例 #1
0
    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)
コード例 #2
0
 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)
コード例 #3
0
    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)
コード例 #4
0
 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)
コード例 #5
0
 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)
コード例 #6
0
    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)