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
This commit is contained in:
parent
8c8625bde3
commit
4567b44909
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue