Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.2.X] Fixed poorly-constructed test from r14612. Thanks to Alex Gay…

…nor for the eagle eyes.

Backport of r14635 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b199cb36f3e236f468386c1c36a14a5eb20ebfaf 1 parent 7236b76
@carljm carljm authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 tests/regressiontests/forms/tests/regressions.py
View
10 tests/regressiontests/forms/tests/regressions.py
@@ -137,7 +137,9 @@ class Meta:
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()
Please sign in to comment.
Something went wrong with that request. Please try again.