def test_delete(self): """ Test we can delete an existing image in the filesystem store """ loc = get_location_from_uri("file:///tmp/glance-tests/2") FilesystemBackend.delete(loc) self.assertRaises(exception.NotFound, FilesystemBackend.get, loc)
def test_delete(self): """ Test we can delete an existing image in the filesystem store """ url_pieces = urlparse.urlparse("file:///tmp/glance-tests/2") FilesystemBackend.delete(url_pieces) self.assertRaises(exception.NotFound, FilesystemBackend.get, url_pieces)