'Fixtures.'

def setUp(self):

    super(TestDueDateExtensionsDeletedDate, self).setUp()
    self.course = CourseFactory.create()
    self.due = datetime.datetime(2010, 5, 12, 2, 42, tzinfo=utc)
    with self.store.bulk_operations(self.course.id, emit_signals=False):
        self.week1 = ItemFactory.create(due=self.due)
        self.week2 = ItemFactory.create(due=self.due)
        self.week3 = ItemFactory.create()
        self.course.children = [self.week1.location.to_deprecated_string(), self.week2.location.to_deprecated_string(), self.week3.location.to_deprecated_string()]
        self.homework = ItemFactory.create(parent_location=self.week1.location, due=self.due)
        self.week1.children = [self.homework.location.to_deprecated_string()]
    user1 = UserFactory.create()
    StudentModule(state='{}', student_id=user1.id, course_id=self.course.id, module_state_key=self.week1.location).save()
    StudentModule(state='{}', student_id=user1.id, course_id=self.course.id, module_state_key=self.week2.location).save()
    StudentModule(state='{}', student_id=user1.id, course_id=self.course.id, module_state_key=self.week3.location).save()
    StudentModule(state='{}', student_id=user1.id, course_id=self.course.id, module_state_key=self.homework.location).save()
    user2 = UserFactory.create()
    StudentModule(state='{}', student_id=user2.id, course_id=self.course.id, module_state_key=self.week1.location).save()
    StudentModule(state='{}', student_id=user2.id, course_id=self.course.id, module_state_key=self.homework.location).save()
    user3 = UserFactory.create()
    StudentModule(state='{}', student_id=user3.id, course_id=self.course.id, module_state_key=self.week1.location).save()
    StudentModule(state='{}', student_id=user3.id, course_id=self.course.id, module_state_key=self.homework.location).save()
    self.user1 = user1
    self.user2 = user2
    self.instructor = InstructorFactory(course_key=self.course.id)
    self.client.login(username=self.instructor.username, password='test')
