Пример #1
0
 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))
Пример #2
0
 def test_get_by_pool_id(self):
     pool = VNXNasPool(pool_id=63, cli=t_nas())
     self.verify_pool_vnx_sg_test(pool)
Пример #3
0
 def test_get_by_name_not_found(self):
     pool = VNXNasPool(name='not_found', cli=t_nas())
     assert_that(pool.existed, equal_to(False))
Пример #4
0
 def test_get_by_name(self):
     pool = VNXNasPool(name='vnx-sg_test', cli=t_nas())
     self.verify_pool_vnx_sg_test(pool)