예제 #1
0
 def test_host_full(self):
     fake_host = copy.deepcopy(eseries_fakes.HOST)
     self.mock_object(self.client, 'get_volume_mappings_for_host',
                      mock.Mock(return_value=FAKE_USED_UP_MAPPINGS))
     self.assertTrue(host_mapper._is_host_full(self.client, fake_host))
예제 #2
0
 def test_host_full(self):
     fake_host = copy.deepcopy(eseries_fakes.HOST)
     self.mock_object(self.client, 'get_volume_mappings_for_host',
                      mock.Mock(return_value=FAKE_USED_UP_MAPPINGS))
     self.assertTrue(host_mapper._is_host_full(self.client, fake_host))
예제 #3
0
 def test_host_not_full(self):
     fake_host = copy.deepcopy(eseries_fakes.HOST)
     self.assertFalse(host_mapper._is_host_full(self.client, fake_host))
예제 #4
0
 def test_host_not_full(self):
     fake_host = copy.deepcopy(eseries_fakes.HOST)
     self.assertFalse(host_mapper._is_host_full(self.client, fake_host))