def test_image_list(self, mock_auth): ''' Test for Return a list of available images (nova images-list + nova image-show) ''' mock_auth.side_effect = MagicMock() with patch.object(mock_auth, 'image_list', MagicMock(return_value='A')): self.assertTrue(nova.image_list())
def test_image_list(self): ''' Test for Return a list of available images (nova images-list + nova image-show) ''' self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, 'image_list', MagicMock(return_value='A')): self.assertTrue(nova.image_list())
def test_image_list(self): """ Test for Return a list of available images (nova images-list + nova image-show) """ self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, "image_list", MagicMock(return_value="A")): self.assertTrue(nova.image_list())