#NEWLINE# def test_last_modified_match_precedence( self ) : #NEWLINE# #INDENT# '\n        Check that the default HTTP method name protection takes precedence\n        upon last modified match and that a last modified header is not set on\n        the response.\n        \n        ' #NEWLINE# last_modified = datetime . datetime . now ( ) #NEWLINE# def condition_last_modified( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# return last_modified #NEWLINE# #UNINDENT# self . assertViewBehavior ( { #NEWLINE# #INDENT# 'condition_last_modified' : condition_last_modified , #NEWLINE# #UNINDENT# } , headers = { #NEWLINE# #INDENT# 'HTTP_IF_MODIFIED_SINCE' : self . format_datetime ( ( last_modified + datetime . timedelta ( hours = 1 ) ) ) , #NEWLINE# #UNINDENT# } , status_code = 405 , headers_exclude = 'Last-Modified' )