'A Paginator subclass can use the ``_get_page`` hook to
return an alternative to the standard Page class.'

def test_get_page_hook(self):

    eleven = 'abcdefghijk'
    paginator = ValidAdjacentNumsPaginator(eleven, per_page=6)
    page1 = paginator.page(1)
    page2 = paginator.page(2)
    self.assertIsNone(page1.previous_page_number())
    self.assertEqual(page1.next_page_number(), 2)
    self.assertEqual(page2.previous_page_number(), 1)
    self.assertIsNone(page2.next_page_number())
