

def fetch(self, uri, headers=None, body=None):
    self.count += 1
    if (self.count == 1):
        headers = {
            'X-XRDS-Location'.lower(): 'http://unittest/404',
        }
        return fetchers.HTTPResponse(uri, 200, headers, '')
    else:
        return fetchers.HTTPResponse(uri, 404)

dataset/ETHPy150Open CollabQ/CollabQ/openid/test/test_yadis_discover.py TestSecondGet.MockFetcher.fetch/original