More concise and better specified:
```python
from xmodule.modulestore import ModuleStoreBase

FakeModulestore = Mock(spec=ModuleStoreBase)
FakeModuleStore.get_items.return_value = [MagicMock(name='capa')]
```