#NEWLINE# def test_paginated_custom_page_kwarg( self ) : #NEWLINE# #INDENT# self . _make_authors ( 100 ) #NEWLINE# res = self . client . get ( '/list/authors/paginated/custom_page_kwarg/' , { #NEWLINE# #INDENT# 'pagina' : '2' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( self . status_code , 200 ) #NEWLINE# self . assertTemplateUsed ( res , 'generic_views/author_list.html' ) #NEWLINE# self . assertEqual ( len ( res . context [ 'object_list' ] ) , 30 ) #NEWLINE# self . assertIs ( res . context [ 'author_list' ] , res . context [ 'object_list' ] ) #NEWLINE# self . assertEqual ( res . context [ 'author_list' ] [ 0 ] . name , 'Author 30' ) #NEWLINE# self . assertEqual ( res . context [ 'page_obj' ] . number , 2 )