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))
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))
def test_host_not_full(self): fake_host = copy.deepcopy(eseries_fakes.HOST) self.assertFalse(host_mapper._is_host_full(self.client, fake_host))
def test_host_not_full(self): fake_host = copy.deepcopy(eseries_fakes.HOST) self.assertFalse(host_mapper._is_host_full(self.client, fake_host))