def f(): cg = VNXConsistencyGroup(name="cg2", cli=t_cli()) cg.create_snap('cg1_snap')
def test_create_cg_snap_success(self): cg = VNXConsistencyGroup(name="cg1", cli=t_cli()) snap = cg.create_snap('cg1_snap') assert_that(snap._name, equal_to('cg1_snap')) assert_that(snap.source_luns, only_contains(1)) assert_that(snap.source_cg, equal_to('cg1'))