'Ordering should be by (\'-enabled\', \'name\')'

def test_specified_ordering(self):

    PeriodicTask.objects.bulk_create([PeriodicTask(name=u'Bohemian    Rhapsody', task=u'bohemian_rhapsody', interval=self.interval, enabled=True), PeriodicTask(name=u'Somebody    to    Love', task=u'somebody_to_love', interval=self.interval, enabled=False), PeriodicTask(name=u'Tie    Your    Mother    Down', task=u'tie_your_mother_down', interval=self.interval, enabled=False), PeriodicTask(name=u'Under    Pressure', task=u'under_pressure', interval=self.interval, enabled=True)])
    names = [b.name for b in self.pt_admin.get_queryset(request)]
    self.assertListEqual([u'Bohemian    Rhapsody', u'Under    Pressure', u'Somebody    to    Love', u'Tie    Your    Mother    Down'], names)
