def setUp(self): self.jack = Util.new_user('jack') self.oneliner = OneLiner(user=self.jack) self.oneliner.save() self.bill = Util.new_user('bill') OneLiner(user=self.bill).save() self.mike = Util.new_user('mike') self.question = Question(user=self.mike) self.question.save()
def new_question(user): question = Question(user=user) question.save() return question