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:
parent
f609306349
commit
61a89f8e1b
|
@ -137,7 +137,9 @@ class FormsRegressionsTestCase(TestCase):
|
||||||
form = CheeseForm({
|
form = CheeseForm({
|
||||||
'name': 'Brie',
|
'name': 'Brie',
|
||||||
})
|
})
|
||||||
if form.is_valid():
|
|
||||||
|
self.assertTrue(form.is_valid())
|
||||||
|
|
||||||
obj = form.save()
|
obj = form.save()
|
||||||
obj.name = 'Camembert'
|
obj.name = 'Camembert'
|
||||||
obj.full_clean()
|
obj.full_clean()
|
||||||
|
|
Loading…
Reference in New Issue