def test_contact_form_valid(self): """ Test that a form is valid :return: None """ form = ContactForm(data=data_contact()) self.assertEqual(form.is_valid(), True)
def test_contact_form_invalid(self): """ Test that an empty form is invalid :return: None """ form = ContactForm() self.assertEqual(form.is_valid(), False)