1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00

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

View File

@ -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()