

def setUp(self):
    User.objects.create_user(email=TEST_USER_EMAIL2, username=TEST_USER_USERNAME2, password=TEST_USER_PASSWORD2)
    user = User.objects.get(email=TEST_USER_EMAIL2)
    teacher = Teacher.objects.create(user=user)
    User.objects.create_user(email=TEST_USER_EMAIL, username=TEST_USER_USERNAME, password=TEST_USER_PASSWORD).save()
    user = User.objects.get(email=TEST_USER_EMAIL)
    teacher = Teacher.objects.create(user=user)
    student = Student.objects.create(user=user)
    course = Course.objects.create(id=1, title='Comics Book Course', sub_title='The definitive course on comics!', category='', teacher=teacher)
    assignment = Assignment.objects.create(assignment_id=1, assignment_num=1, title='Hideauze', description='Anime related assignment.', worth=25, course=course)
    EssayQuestion.objects.create(question_id=1, assignment=assignment, title='Evolvers', description='Write an essay about the Evolvers.')
    e_question = EssayQuestion.objects.get(question_id=1)
    ResponseQuestion.objects.create(question_id=4, assignment=assignment, title='Hideauze', description='Why did humanity migrate off-world?', answer='Because of solar hibernation causing Global Cooling on Earth.')
    r_question = ResponseQuestion.objects.get(question_id=4)
    AssignmentSubmission.objects.create(submission_id=1, student=student, assignment=assignment)
    submission = AssignmentSubmission.objects.get(assignment_id=1)
    EssaySubmission.objects.create(submission_id=1, student=student, question=e_question)
    ResponseSubmission.objects.create(submission_id=2, student=student, question=r_question)

dataset/ETHPy150Open AcademicsToday/py-academicstoday/academicstoday_project/teacher/tests/test_peer_review.py PeerReviewTestCase.setUp/original