#NEWLINE# def test_today_view( self ) : #NEWLINE# #INDENT# res = self . client . get ( '/dates/books/today/' ) #NEWLINE# self . assertEqual ( res . status_code , 404 ) #NEWLINE# res = self . client . get ( '/dates/books/today/allow_empty/' ) #NEWLINE# self . assertEqual ( res . status_code , 200 ) #NEWLINE# self . assertEqual ( res . context [ 'day' ] , datetime . date . today ( ) )