

def test_delete(self):
    '\n        Test we can delete an existing image in the swift store\n        '
    conf = copy.deepcopy(SWIFT_CONF)
    self.config(**conf)
    moves.reload_module(swift)
    self.mock_keystone_client()
    self.store = Store(loc.conf)
    self.store.configure()
    uri = ('swift://%s:key@authurl/glance/%s' % (self.swift_store_user, FAKE_UUID))
    loc = location.get_location_from_uri(uri, conf=self.conf)
    self.store.delete(loc)
    self.assertRaises(exceptions.NotFound, self.store.get, loc)

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py SwiftTests.test_delete/VarMisuse@48/82 `self`->`loc`