示例#1
0
 def test_submit_a_response(self):
     selection = mommy.make_recipe('ratings.recording')
     response = Response(question=self.question, selection=selection)
     response.full_clean()
     response.save()  # should not raise
示例#2
0
 def test_submit_a_response(self):
     question = mommy.make(Question)
     selection = mommy.make(Message)
     response = Response(question=question, selection=selection)
     response.full_clean()
     response.save()  # should not raise
示例#3
0
 def test_submit_a_response(self):
     question = mommy.make(Question)
     selection = mommy.make(Message)
     response = Response(question=question, selection=selection)
     response.full_clean()
     response.save()  # should not raise