def test_lun_snap_create_existing(self): lun = UnityLun(_id='sv_9', cli=t_rest()) assert_that(lambda: lun.create_snap(name='lun_snap_1'), raises(UnitySnapNameInUseError))
def test_lun_snap_create(self): lun = UnityLun(_id='sv_8', cli=t_rest()) snap = lun.create_snap(name='lun_snap_1') assert_that(snap, instance_of(UnitySnap))