

def testGetMustExist(self):
    'Test Get must_exist parameter.'
    unknown_key = 'some/unknown/key'
    self.assertRaises(httpclient.HTTPError, self._RunAsync, self.object_store.Get, unknown_key)
    self.assertRaises(httpclient.HTTPError, self._RunAsync, self.object_store.Get, self, must_exist=True)
    self.assertIsNone(self._RunAsync(self.object_store.Get, unknown_key, must_exist=False))
    self._RunAsync(self.object_store.Put, self.key, 'world')
    self.assertEquals(self._RunAsync(self.object_store.Get, self.key, must_exist=True), 'world')
    self.assertEquals(self._RunAsync(self.object_store.Get, self.key, must_exist=False), 'world')

dataset/ETHPy150Open viewfinderco/viewfinder/backend/storage/test/s3_object_store_test.py S3ObjectStoreTestCase.testGetMustExist/VarMisuse@55/95 `unknown_key`->`self`