'Create course fixture
Arguments:
num_chapters: number of chapters to create'

def create_course_fixture(self, num_chapters):

    self.course_fixture = CourseFixture(self.course_info['org'], self.course_info['number'], self.course_info['run'], self.course_info['display_name'])
    xblocks = []
    for index in range(num_chapters):
        xblocks += [XBlockFixtureDesc('chapter', 'TestSection{}'.format(index)).add_children(XBlockFixtureDesc('sequential', 'TestSubsection{}'.format(index)).add_children(XBlockFixtureDesc('vertical', 'TestVertical{}'.format(index))))]
    self.course_fixture.add_children(*xblocks).install()
