From 4567b44909347f905f8a5e1409768e9095fbe5b1 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 20 May 2009 00:19:13 +0000 Subject: [PATCH] Modified a test from r10787 so that the comparison order is reliable. 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 --- tests/regressiontests/model_formsets_regress/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regressiontests/model_formsets_regress/tests.py b/tests/regressiontests/model_formsets_regress/tests.py index a825c83105..f5e9355e42 100644 --- a/tests/regressiontests/model_formsets_regress/tests.py +++ b/tests/regressiontests/model_formsets_regress/tests.py @@ -69,7 +69,7 @@ class InlineFormsetTests(TestCase): 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)