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
This commit is contained in:
Carl Meyer 2010-11-20 00:05:11 +00:00
parent f609306349
commit 61a89f8e1b
1 changed files with 6 additions and 4 deletions

View File

@ -137,7 +137,9 @@ class FormsRegressionsTestCase(TestCase):
form = CheeseForm({ form = CheeseForm({
'name': 'Brie', 'name': 'Brie',
}) })
if form.is_valid():
obj = form.save() self.assertTrue(form.is_valid())
obj.name = 'Camembert'
obj.full_clean() obj = form.save()
obj.name = 'Camembert'
obj.full_clean()