'Test setup'

def setUp(self):

    SignalHandler.course_published.connect(listen_for_course_publish)
    super(CourseStructureApiTests, self).setUp()
    self.course = CourseFactory.create()
    self.chapter = ItemFactory.create(parent_location=self.course.location, category='chapter', display_name='Week    1')
    self.sequential = ItemFactory.create(parent_location=self.chapter.location, category='sequential', display_name='Lesson    1')
    self.vertical = ItemFactory.create(parent_location=self.sequential.location, category='vertical', display_name='Subsection    1')
    self.video = ItemFactory.create(parent_location=self.vertical.location, category='video', display_name='My    Video')
    self.video = ItemFactory.create(parent_location=self.vertical.location, category='html', display_name='My    HTML')
    self.addCleanup(self._disconnect_course_published_event)
