'Test system logs an error if no item found.'

@mock.patch('xmodule.modulestore.mongo.base.MongoModuleStore.get_course')
def test_indexing_no_item(self, mock_get_course):

    err = ItemNotFoundError
    mock_get_course.return_value = err
    with self.assertRaises(SearchIndexingError):
        CoursewareSearchIndexer.do_course_reindex(modulestore(), self.course.id)
