From 3b1cb78063466e996cbb042e44aadfac30df73fa Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 18 May 2020 00:25:26 -0700 Subject: [PATCH] =?UTF-8?q?Used=20assertIs(=E2=80=A6,=20True)=20in=20model?= =?UTF-8?q?=5Fforms.tests.ValidationTest.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/model_forms/tests.py | 6 +++--- 1 file 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):