It would be simpler and clearer to not use `configure_mock`, but just set the attributes directly:
```python
modulestore = Mock()
modulestore.get_item.return_value = mocked_course
```
The `get_item` mock will be implicitly created as soon as it's referenced, so this will do what you would expect.