Signed-off-by: Yingze Wei <weiyingze@cmss.chinamobile.com>
:param name: the name of the snapshot
:type name: str
- :raises: :class:`IOError`, :class:`ImageBusy`
+ :raises: :class:`IOError`, :class:`ImageBusy`, :class:`ImageNotFound`
"""
name = cstr(name, 'name')
cdef char *_name = name
self.image.remove_snap('snap1')
eq([], list(self.image.list_snaps()))
+ def test_remove_snap_not_found(self):
+ assert_raises(ImageNotFound, self.image.remove_snap, 'snap1')
+
def test_remove_snap_by_id(self):
eq([], list(self.image.list_snaps()))
self.image.create_snap('snap1')