def setUp(self): self.advisor = models.new_user(username='******', password='******') self.chair = models.new_user( username='******', password='******', user_type=User.TYPE_CHAIR) self.delegate_user = models.new_user( username='******', password='******', user_type=User.TYPE_DELEGATE) self.delegate_user_2 = models.new_user( username='******', password='******', user_type=User.TYPE_DELEGATE) self.school = models.new_school(user=self.advisor) self.registration = models.new_registration(school=self.school) self.rubric = models.new_rubric() self.committee = models.new_committee( user=self.chair, rubric=self.rubric) self.paper = models.new_position_paper() self.assignment = models.new_assignment( registration=self.registration, committee=self.committee, paper=self.paper) self.delegate = models.new_delegate( user=self.delegate_user, assignment=self.assignment, school=self.school)
def setUp(self): self.advisor = models.new_user(username='******', password='******') self.chair = models.new_user(username='******', password='******', user_type=User.TYPE_CHAIR) self.delegate_user = models.new_user(username='******', password='******', user_type=User.TYPE_DELEGATE) self.delegate_user_2 = models.new_user(username='******', password='******', user_type=User.TYPE_DELEGATE) self.school = models.new_school(user=self.advisor) self.registration = models.new_registration(school=self.school) self.committee = models.new_committee(user=self.chair) self.paper = models.new_position_paper() self.assignment = models.new_assignment(registration=self.registration, committee=self.committee, paper=self.paper) self.delegate = models.new_delegate(user=self.delegate_user, assignment=self.assignment, school=self.school)
def get_test_object(cls): return models.new_position_paper()