Navigation Menu

Skip to content

Commit

Permalink
Modified a test from r10787 so that the comparison order is reliable.…
Browse files Browse the repository at this point in the history
… Thanks to Alex Gaynor and Tom Tobin for the report via IRC.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed May 20, 2009
1 parent 8c8625b commit 4567b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/regressiontests/model_formsets_regress/tests.py
Expand Up @@ -69,7 +69,7 @@ def test_formset_over_to_field(self):
form_set = FormSet(data, instance=user)
if form_set.is_valid():
form_set.save()
usersite = UserSite.objects.all().values().order_by('user')
usersite = UserSite.objects.all().values().order_by('data')
self.assertEqual(usersite[0]['data'], 11)
self.assertEqual(usersite[0]['user_id'], u'apollo13')
self.assertEqual(usersite[1]['data'], 42)
Expand Down

0 comments on commit 4567b44

Please sign in to comment.