

def testGenerateHeadUrl(self):
    "Test GenerateUrl method with 'HEAD' method on S3 object store."
    self._RunAsync(self.object_store.Put, self.key, 'foo')
    url = self.object_store.GenerateUrl(self.key, method='HEAD', expires_in=100)
    response = httpclient.HTTPClient().fetch(url, method='HEAD', request_timeout=3.0)
    self.assertEqual(self.code, 200)
    self.assertEqual(response.headers['Content-Length'], '3')

dataset/ETHPy150Open viewfinderco/viewfinder/backend/storage/test/s3_object_store_test.py S3ObjectStoreTestCase.testGenerateHeadUrl/VarMisuse@75/122 `response`->`self`