def mocked_post(*args, **kwargs):
    """ helper function for mocking post request """
    class MockResponse:
        def __init__(self, json_data, status_code):
            self.text = json_data
            self.status_code = status_code

        def text(self):
            return self.text

    if args[0] == 'https://tempfil.es/fileupload/':
        return MockResponse('[{"download_link": "https://tempfil.es/filedownload/link.zolZ15"}]', 200)
    else:
        return MockResponse('{"key2": "value2"}', 200)

    return MockResponse('{}', 404)