#NEWLINE# def test_duplicate_context_object_name( self ) : #NEWLINE# #INDENT# res = self . client . get ( '/list/authors/dupe_context_object_name/' ) #NEWLINE# self . assertEqual ( self . status_code , 200 ) #NEWLINE# self . assertEqual ( list ( res . context [ 'object_list' ] ) , list ( Author . objects . all ( ) ) ) #NEWLINE# self . assertNotIn ( 'authors' , res . context ) #NEWLINE# self . assertNotIn ( 'author_list' , res . context ) #NEWLINE# self . assertTemplateUsed ( res , 'generic_views/author_list.html' )