'Helper method to create the course.'

def setup_course(self, default_store=None):

    if (not default_store):
        default_store = self.store.default_modulestore.get_modulestore_type()
    with self.store.default_store(default_store):
        self.course = CourseFactory.create(**self.course_options())
        chapter = ItemFactory.create(parent=self.course, category='chapter')
        self.vertical_block = ItemFactory.create(parent_location=chapter.location, category='vertical', display_name='Vertical')
        self.html_block = ItemFactory.create(parent=self.vertical_block, category='html', data='<p>Test    HTML    Content<p>')
    self.block_to_be_tested = getattr(self, self.block_name_to_be_tested)
    self.block_specific_chrome_html_elements = self.BLOCK_SPECIFIC_CHROME_HTML_ELEMENTS[self.block_name_to_be_tested]
