def f(): dm = VNXMoverRef(mover_id=1, cli=t_nas()) dm.delete_dns('bb')
def test_get_by_name_not_found(self): dm = VNXMoverRef(name='server_5', cli=t_nas()) assert_that(dm.existed, equal_to(False))
def test_delete_dns(self): dm = VNXMoverRef(mover_id=1, cli=t_nas()) resp = dm.delete_dns('tt') assert_that(resp.is_ok(), equal_to(True))
def test_get_not_existed(self): dm = VNXMoverRef(mover_id=5, cli=t_nas()) assert_that(dm.existed, equal_to(False))
def test_get_by_name(self): dm = VNXMoverRef(name='server_2', cli=t_nas()) self.verify_dm_ref_1(dm)
def test_get(self): dm = VNXMoverRef(mover_id=1, cli=t_nas()) self.verify_dm_ref_1(dm)
def test_ethernet_devices(self): dm = VNXMoverRef(mover_id=1, cli=t_nas()) assert_that(len(dm.ethernet_devices), equal_to(4))
def test_physical_devices(self): dm = VNXMoverRef(mover_id=1, cli=t_nas()) assert_that(len(dm.physical_devices), equal_to(9))