def test_form_valid(self): form = FeedbackForm({'title': 'feed title', 'email': '*****@*****.**', 'text': 'feed text'}) self.assertTrue(form.is_valid())
def test_form_invalid(self): form = FeedbackForm({'email': '*****@*****.**', 'text': 'feed text'}) self.assertFalse(form.is_valid())