Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 61a89f8e1b382510e4dc3a5ffe293c1a5d232afc 1 parent f609306
@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.