def test_validation_passes_for_correct_no_of_choices(self): quiz = Quiz(choices=2) q = Question(quiz=quiz) q.choices = ['just', 'right'] q.full_clean(exclude=['quiz', 'order', 'text'])