Kaydet (Commit) 61a89f8e authored tarafından Carl Meyer's avatar Carl Meyer

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
üst f6093063
......@@ -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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment