def test_modify_snap_failed(self): snap = VNXSnap(cli=t_cli(), name='s2') try: snap.modify(new_name='s1') self.fail('should have raise an exception.') except VNXSnapError: assert_that(snap._name, equal_to('s2'))
def test_modify_snap_failed(self): snap = VNXSnap(cli=t_cli(), name='s2') try: snap.modify(new_name='s1') self.fail('should have raise an exception.') except VNXSnapError: assert_that(snap._name, equal_to('s2'))
def test_modify_snap(self): snap = VNXSnap(cli=t_cli(), name='s1') snap.modify(new_name='s2', allow_rw=True) assert_that(snap._name, equal_to('s2'))
def test_modify_snap(self): snap = VNXSnap(cli=t_cli(), name='s1') snap.modify(new_name='s2', rw=True) assert_that(snap._name, equal_to('s2'))