'Initial data setup'

def setUp(self):

    super(TestGatingApi, 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.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='untitled    sequential    1')
    self.seq2 = ItemFactory.create(parent_location=self.chapter1.location, category='sequential', display_name='untitled    sequential    2')
    self.generic_milestone = {'name': 'Test    generic    milestone', 'namespace': unicode(self.seq1.location)}
