Beispiel #1
0
 def test_get_one_host_lun(self):
     host = UnityHost(cli=t_rest(), _id='Host_10')
     lun1 = UnityLun(cli=t_rest(), _id="sv_2")
     which = host._get_host_luns(lun1)
     assert_that(len(which), equal_to(1))
     assert_that(which[0].lun.id, equal_to(lun1.id))
Beispiel #2
0
 def test_get_all_host_lun_all(self):
     host = UnityHost(cli=t_rest(), _id='Host_10')
     all_luns = host._get_host_luns()
     assert_that(len(all_luns), equal_to(2))