'Set up tests'

@classmethod
def setUpClass(cls):

    super(TestCCXProgressChanges, cls).setUpClass()
    start = datetime.datetime(2016, 7, 1, 0, 0, tzinfo=tzutc())
    due = datetime.datetime(2016, 7, 8, 0, 0, tzinfo=tzutc())
    cls.course = course = CourseFactory.create(enable_ccx=True, start=start)
    chapter = ItemFactory.create(start=start, parent=course, category=u'chapter')
    sequential = ItemFactory.create(parent=chapter, start=start, due=due, category=u'sequential', metadata={'graded': True, 'format': 'Homework'})
    vertical = ItemFactory.create(parent=sequential, start=start, due=due, category=u'vertical', metadata={'graded': True, 'format': 'Homework'})
    with cls.store.bulk_operations(course.id, emit_signals=False):
        flatten(([ItemFactory.create(parent=vertical, start=start, due=due, category='problem', data=StringResponseXMLFactory().build_xml(answer='foo'), metadata={'rerandomize': 'always'})] for _ in xrange(2)))
