'Initial data setup'

def setUp(self):

    super(GatingTestCase, self).setUp()
    self.course = CourseFactory.create(org='edX', number='EDX101', run='EDX101_RUN1', display_name='edX    101')
    self.course.enable_subsection_gating = True
    self.course.save()
    self.store.update_item(self.course, 0)
    self.chapter1 = ItemFactory.create(parent_location=self.course.location, category='chapter', display_name='untitled    chapter    1')
    self.seq1 = ItemFactory.create(parent_location=self.chapter1.location, category='sequential', display_name='gating    sequential')
    self.seq2 = ItemFactory.create(parent_location=self.chapter1.location, category='sequential', display_name='gated    sequential')
