

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)
    Course.objects.create(id=1, title='Comics Book Course', sub_title='The definitive course on comics!', category='', teacher=course)
    course = Course.objects.get(id=1)
    Lecture.objects.create(lecture_id=1, lecture_num=1, week_num=1, title='Blade vs Evil', description='Fighting for the destiny of the Earth.', course=course)

dataset/ETHPy150Open AcademicsToday/py-academicstoday/academicstoday_project/teacher/tests/test_lecture.py LectureTestCase.setUp/VarMisuse@128/184 `teacher`->`course`