'Test that getting an ErrorDescriptor back from the module store causes
load_from_module_store to raise an IOError.'

def test_get_errored_course(self):

    mock_get_course = mock.Mock(return_value=ErrorDescriptor)
    with mock.patch('xmodule.modulestore.mixed.MixedModuleStore.get_course', mock_get_course):
        with self.assertRaises(IOError):
            CourseOverview.load_from_module_store(self.store.make_course_key('Non', 'Existent', 'Course'))
