Skip to content
Browse files

[1.0.X] Modified a test from r10787 so that the comparison order is r…

…eliable. Thanks to Alex Gaynor and Tom Tobin for the report via IRC.

Merge of r10828 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 3cd3df8 commit e00173806361ce0756bea8a2e2efaac773f56569 @freakboy3742 freakboy3742 committed May 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/regressiontests/model_formsets_regress/
2 tests/regressiontests/model_formsets_regress/
@@ -69,7 +69,7 @@ def test_formset_over_to_field(self):
form_set = FormSet(data, instance=user)
if form_set.is_valid():
- 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)

0 comments on commit e001738

Please sign in to comment.
Something went wrong with that request. Please try again.