def setUp(self): nameCourse = '2012-2' course = Course() course.name = nameCourse course.save() student = Student() student.uid = "85000" student.save() practice = Practice() practice.uid = "Tp inicial" practice.course = course practice.file = "pathFile" practice.deadline = "2012-12-01" practice.save()