'Unordered object list warning with an object that has an orderd
attribute but not a model attribute.'

def test_paginating_unordered_object_list_raises_warning(self):

    class ObjectList:
        ordered = False
    object_list = ObjectList()
    with warnings.catch_warnings(record=True) as warns:
        warnings.filterwarnings('always', category=UnorderedObjectListWarning)
        Paginator(object_list, 5)
    self.assertEqual(len(warns), 1)
    self.assertEqual(str(warns[0].message), 'Pagination    may    yield    inconsistent    results    with    an    unordered    object_list:    {!r}.'.format(object_list))
