diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-05-18 00:25:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 09:25:26 +0200 |
commit | 3b1cb78063466e996cbb042e44aadfac30df73fa (patch) | |
tree | 40bdc623cc8c2d5a3ba77868ae2fe7976e9349d0 /tests/model_forms | |
parent | 7070d4611471db701ed0d51d23e72d5f5c647085 (diff) | |
download | django-3b1cb78063466e996cbb042e44aadfac30df73fa.tar.gz |
Used assertIs(…, True) in model_forms.tests.ValidationTest.
Diffstat (limited to 'tests/model_forms')
-rw-r--r-- | tests/model_forms/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/model_forms/tests.py b/tests/model_forms/tests.py index 00e68d1dae..cb8d7c3f84 100644 --- a/tests/model_forms/tests.py +++ b/tests/model_forms/tests.py @@ -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): |