def test_get_by_pool_id(self): pool = VNXNasPool.get(pool_id=63, cli=t_nas()) self.verify_pool_vnx_sg_test(pool)
def test_get_id(self): pool = VNXNasPool(pool_id=12) assert_that(pool.get_id(pool), equal_to(12)) assert_that(pool.get_id('22'), equal_to(22))
def test_get_all(self): pool_list = VNXNasPool.get(cli=t_nas()) assert_that(len(pool_list), equal_to(6))
def test_get_by_name(self): pool = VNXNasPool.get(name='vnx-sg_test', cli=t_nas()) self.verify_pool_vnx_sg_test(pool)
def test_get_by_name_not_found(self): pool = VNXNasPool(name='not_found', cli=t_nas()) assert_that(pool.existed, equal_to(False))
def get_nas_pool(self, name=None, pool_id=None): return VNXNasPool.get(cli=self._file_cli, name=name, pool_id=pool_id)