예제 #1
0
    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()
예제 #2
0
 def new_question(user):
     question = Question(user=user)
     question.save()
     return question