def mocked_requests_post(*args, **kwargs):

    class MockResponse():

        def __init__(self, json_data, status_code):
            self.json_data = json_data
            self.status_code = status_code
            self.data = json.dumps(self.json_data)

        def json(self):
            return self.json_data
    if (args[0] == JIRA_API_URL):
        return MockResponse({'data': {'status': '待处理', 'jiraId': 'AA-157', 'operator': 'dalingdao'}, 'status': 200}, 200)
    return MockResponse(None, 404)
def mocked_requests_post(*args, **kwargs):

    class MockResponse():

        def __init__(self, json_data, status_code):
            self.json_data = json_data
            self.status_code = status_code
            self.data = json.dumps(self.json_data)

        def json(self):
            return self.json_data
    if (args[0] == JIRA_API_URL):
        return MockResponse({'data': {'status': '待处理', 'jiraId': 'AA-157', 'operator': 'dalingdao'}, 'status': 200}, 200)
    return MockResponse(None, 404)