diff --git a/commentaries/test_forms.py b/commentaries/test_forms.py index 29147a1d5f7b039d436186292db483ac693b55eb..bd41e58a1a4105431445cd280f0ddb6fbb3589f0 100644 --- a/commentaries/test_forms.py +++ b/commentaries/test_forms.py @@ -64,6 +64,11 @@ class TestVetCommentaryForm(TestCase): VetCommentaryForm.REFUSAL_UNTRACEBLE] self.assertEqual(form.get_refusal_reason(), refusal_reason_inserted) + def test_process_before_validation(self): + """Test response of form on processing before validation""" + form = VetCommentaryForm(self.form_data, commentary_id=self.commentary.id, user=self.user) + self.assertRaises(ValueError, form.process_commentary) + class TestRequestCommentaryForm(TestCase): fixtures = ['permissions', 'groups']