'Fixtures.'

def setUp(self):

    super(TestDueDateExtensions, self).setUp()
    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')
