mirror of https://github.com/django/django.git
Used assertIs(…, True) in model_forms.tests.ValidationTest.
This commit is contained in:
parent
7070d46114
commit
3b1cb78063
|
@ -873,15 +873,15 @@ class IncompleteCategoryFormWithExclude(forms.ModelForm):
|
|||
class ValidationTest(SimpleTestCase):
|
||||
def test_validates_with_replaced_field_not_specified(self):
|
||||
form = IncompleteCategoryFormWithFields(data={'name': 'some name', 'slug': 'some-slug'})
|
||||
assert form.is_valid()
|
||||
self.assertIs(form.is_valid(), True)
|
||||
|
||||
def test_validates_with_replaced_field_excluded(self):
|
||||
form = IncompleteCategoryFormWithExclude(data={'name': 'some name', 'slug': 'some-slug'})
|
||||
assert form.is_valid()
|
||||
self.assertIs(form.is_valid(), True)
|
||||
|
||||
def test_notrequired_overrides_notblank(self):
|
||||
form = CustomWriterForm({})
|
||||
assert form.is_valid()
|
||||
self.assertIs(form.is_valid(), True)
|
||||
|
||||
|
||||
class UniqueTest(TestCase):
|
||||
|
|
Loading…
Reference in New Issue