Skip to content

Commit

Permalink
[1.2.X] Fixed poorly-constructed test from r14612. Thanks to Alex Gay…
Browse files Browse the repository at this point in the history
…nor for the eagle eyes.

Backport of r14635 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
carljm committed Nov 20, 2010
1 parent 7236b76 commit b199cb3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/regressiontests/forms/tests/regressions.py
Expand Up @@ -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()

0 comments on commit b199cb3

Please sign in to comment.