Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 def test_contact_form_invalid(self):
     """ Test that an empty form is invalid
     :return: None
     """
     form = ContactForm()
     self.assertEqual(form.is_valid(), False)
Пример #4
0
 def test_contact_form_invalid(self):
     """ Test that an empty form is invalid
     :return: None
     """
     form = ContactForm()
     self.assertEqual(form.is_valid(), False)