#NEWLINE# def test_last_modified_miss( self ) : #NEWLINE# #INDENT# '\n        Check that the last modified header is updated upon miss.\n        \n        ' #NEWLINE# last_modified = datetime . datetime . now ( ) #NEWLINE# content = self . unique ( ) #NEWLINE# def condition_last_modified( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# return ( last_modified + datetime . timedelta ( hours = 1 ) ) #NEWLINE# #UNINDENT# self . assertViewBehavior ( { #NEWLINE# #INDENT# 'condition_last_modified' : condition_last_modified , #NEWLINE# 'get' : content , #NEWLINE# #UNINDENT# } , headers = { #NEWLINE# #INDENT# 'HTTP_IF_MODIFIED_SINCE' : self . format_datetime ( last_modified ) , #NEWLINE# #UNINDENT# } , status_code = 200 , content = content , headers_exact = { #NEWLINE# #INDENT# 'Last-Modified' : self . format_datetime ( ( last_modified + datetime . timedelta ( hours = 1 ) ) ) , #NEWLINE# #UNINDENT# } )