'Ensure that pagination works for list_editable items.
Refs #16819.'

def test_list_editable_pagination(self):

    UnorderedObject.objects.create(id=1, name=u'Unordered    object    #1')
    UnorderedObject.objects.create(id=2, name=u'Unordered    object    #2')
    UnorderedObject.objects.create(id=3, name=u'Unordered    object    #3')
    response = self.client.get(u'/test_admin/admin/admin_views/unorderedobject/')
    self.assertContains(response, u'Unordered    object    #3')
    self.assertContains(response, u'Unordered    object    #2')
    self.assertNotContains(response, u'Unordered    object    #1')
    response = self.client.get(u'/test_admin/admin/admin_views/unorderedobject/?p=1')
    self.assertNotContains(response, u'Unordered    object    #3')
    self.assertNotContains(response, u'Unordered    object    #2')
    self.assertContains(response, u'Unordered    object    #1')
