diff --git a/tests/regressiontests/forms/tests/regressions.py b/tests/regressiontests/forms/tests/regressions.py index 6c6a308db5..26569565e3 100644 --- a/tests/regressiontests/forms/tests/regressions.py +++ b/tests/regressiontests/forms/tests/regressions.py @@ -137,7 +137,9 @@ class FormsRegressionsTestCase(TestCase): form = CheeseForm({ 'name': 'Brie', }) - if form.is_valid(): - obj = form.save() - obj.name = 'Camembert' - obj.full_clean() + + self.assertTrue(form.is_valid()) + + obj = form.save() + obj.name = 'Camembert' + obj.full_clean()