Beispiel #1
0
 def test_is_valid_valid(self):
     data = {
         'name': 'Test Organization',
         'description': 'Test organization description',
     }
     f = OrganizationModelForm(data)
     self.assertTrue(f.is_valid())
Beispiel #2
0
 def test_is_valid_invalid_no_name(self):
     data = {}
     f = OrganizationModelForm(data)
     self.assertFalse(f.is_valid())