human
I wrote the below code

    def assert_page(page, data, start, end):
        assert_equal(page.object_list, data)
        assert_equal(page.start_index(), start)
        assert_equal(page.end_index(), end)
    obj = range(20)
    pgn = Paginator(obj, per_page=20, total=25)
    assert_page(pgn.page(1), obj, 1, 20)
    obj = range(5)
    pgn = Paginator(obj, per_page=20, total=25)
    assert_page(pgn.page(2), obj, 21, 25)
    obj = range(22)
    pgn = Paginator(obj, per_page=20, total=25)
    assert_page(pgn.page(1), range(20), 1, 20)
    obj = range(22)
    pgn = Paginator(obj, per_page=20, total=25)
    assert_page(pgn.page(2), range(5), 21, 25)
    obj = query.QuerySet()
    obj._result_cache = range(10)
    pgn = Paginator(obj, per_page=10, total=9)
    assert_page(pgn.page(1), range(10), 1, 10)
    obj = range(25)
    pgn = Paginator(obj, per_page=20)
    assert_page(pgn.page(1), range(20), 1, 20)
    assert_page(pgn.page(2), range(20, 25), 21, 25)

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def test_paginator():