'Test the case where the course  has an unexpected structure.'

@mock.patch('openedx.core.djangoapps.content.course_structures.models.CourseStructure.structure', new_callable=mock.PropertyMock)
def test_wrong_course_structure(self, mocked_attr):

    mocked_attr.return_value = {'foo': 'bar'}
    self.assertEqual(utils.get_course_chapters(self.course_key), [])
