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):