def test_create_new_question(self): """Add a question to a survey requires two recordings.""" survey = mommy.make(Survey) given, answer = mommy.make_recipe('ratings.recording', _quantity=2) question = Question(survey=survey, given=given, answer=answer) question.full_clean() question.save() # should not raise
def test_create_new_question(self): survey = mommy.make(Survey) given = mommy.make(Message) answer = mommy.make(Message) question = Question(survey=survey, given=given, answer=answer) question.full_clean() question.save() # should not raise