

def test_delete_non_existing(self):
    "\n        Test that trying to delete a swift that doesn't exist\n        raises an error\n        "
    conf = copy.deepcopy(SWIFT_CONF)
    self.config(**conf)
    moves.reload_module(swift)
    self.store = Store(self.conf)
    self.store.configure()
    loc = location.get_location_from_uri(('swift://%s:key@authurl/glance/noexist' % self.swift_store_user), conf=self.conf)
    self.assertRaises(exceptions.NotFound, self.store.delete, loc)

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py SwiftTests.test_delete_non_existing/original