From 61a89f8e1b382510e4dc3a5ffe293c1a5d232afc Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Sat, 20 Nov 2010 00:05:11 +0000 Subject: [PATCH] Fixed poorly-constructed test from r14612. Thanks to Alex Gaynor for the eagle eyes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14635 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/tests/regressions.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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()