def mock_response(self, url, content_type='image/jpeg'):
    responses.add(responses.GET, url, content_type=content_type)
def mock_response(self, url, content_type='image/jpeg'):
    responses.add(responses.GET, url, content_type=content_type)