def test_specified_ordering(self):
        class BandAdmin(ModelAdmin):
            ordering = ('rank',) # default ordering is ('name',)
        ma = BandAdmin(Band, None)
        names = [b.name for b in ma.queryset(None)]
        self.assertEqual([u'Radiohead', u'Van Halen', u'Aerosmith'], names)
Let's use a custom ModelAdmin that changes the ordering, and make sure
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/admin_ordering/tests.py/TestAdminOrdering.test_specified_ordering