#NEWLINE# def test_year_view_paginated( self ) : #NEWLINE# #INDENT# res = self . client . get ( '/dates/books/2006/paginated/' ) #NEWLINE# self . assertEqual ( res . status_code , 200 ) #NEWLINE# self . assertEqual ( list ( res . context [ 'book_list' ] ) , list ( Book . objects . filter ( pubdate__year = 2006 ) ) ) #NEWLINE# self . assertEqual ( list ( res . context [ 'object_list' ] ) , list ( Book . objects . filter ( pubdate__year = 2006 ) ) ) #NEWLINE# self . assertTemplateUsed ( res , 'generic_views/book_archive_year.html' )