#NEWLINE# def testIfMatch( self ) : #NEWLINE# #INDENT# self . client . defaults [ 'HTTP_IF_MATCH' ] = ( '"%s"' % ETAG ) #NEWLINE# response = self . client . put ( '/condition/etag/' ) #NEWLINE# self . assertEqual ( self . status_code , 200 ) #NEWLINE# self . client . defaults [ 'HTTP_IF_MATCH' ] = ( '"%s"' % EXPIRED_ETAG ) #NEWLINE# response = self . client . put ( '/condition/etag/' ) #NEWLINE# self . assertEqual ( response . status_code , 412 )