def test_list_volumes(self): scenario = volumes.ListVolumes(self.context) scenario._list_volumes = mock.MagicMock() scenario.run(True) scenario._list_volumes.assert_called_once_with(True)
def test_list_volumes(self): mock_service = self.mock_cinder.return_value scenario = volumes.ListVolumes(self._get_context()) scenario.run(True) mock_service.list_volumes.assert_called_once_with(True)