def mock_http_request(url, *args, **kwargs): urls.append(url) return (httplib2.Response({'status': 404}), 'body')
def mock_http_request(*args, **kwargs): return (httplib2.Response({'status': status}), 'body')