def test_volume_list(self, mock_auth): ''' Test for List storage volumes ''' mock_auth.side_effect = MagicMock() with patch.object(mock_auth, 'volume_list', MagicMock(return_value='A')): self.assertTrue(nova.volume_list())
def test_volume_list(self): ''' Test for List storage volumes ''' self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, 'volume_list', MagicMock(return_value='A')): self.assertTrue(nova.volume_list())
def test_volume_list(self): """ Test for List storage volumes """ self.mock_auth.side_effect = MagicMock() with patch.object(self.mock_auth, "volume_list", MagicMock(return_value="A")): self.assertTrue(nova.volume_list())