Esempio n. 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
Esempio n. 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
Esempio n. 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