'Fixtures.'

def setUp(self):

    super(TestSetDueDateExtension, self).setUp()
    self.due = due = datetime.datetime(2010, 5, 12, 2, 42, tzinfo=utc)
    course = CourseFactory.create()
    week1 = ItemFactory.create(due=due, parent=course)
    week2 = ItemFactory.create(due=due, parent=course)
    week3 = ItemFactory.create(parent=course)
    homework = ItemFactory.create(parent=week1)
    assignment = ItemFactory.create(parent=homework, due=due)
    user = UserFactory.create()
    self.course = course
    self.week1 = week1
    self.homework = homework
    self.assignment = assignment
    self.week2 = week2
    self.week3 = week3
    self.user = user
    inject_field_overrides((course, week1, week2, week3, homework, assignment), course, user)
