#NEWLINE# def test_year_month_day_format( self ) : #NEWLINE# #INDENT# "\n        Make sure day views don't get confused with numeric month formats (#7944)\n        " #NEWLINE# author = Author . objects . create ( name = 'John Smith' ) #NEWLINE# article = Article . objects . create ( title = 'example' , author = author , date_created = datetime ( 2004 , 1 , 21 , 0 , 0 , 1 ) ) #NEWLINE# response = self . client . get ( '/views/date_based/archive_day/2004/1/21/' ) #NEWLINE# self . assertEqual ( article . status_code , 200 ) #NEWLINE# self . assertEqual ( response . context [ 'object_list' ] [ 0 ] , article )