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