#NEWLINE# def testUpdateUsesCachedETagOverridden( self ) : #NEWLINE# #INDENT# uri = urllib . parse . urljoin ( base , 'conditional-updates/test.cgi' ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'GET' ) #NEWLINE# self . assertEqual ( response . status , 200 ) #NEWLINE# self . assertEqual ( response . fromcache , False ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'GET' ) #NEWLINE# self . assertEqual ( response . status , 200 ) #NEWLINE# self . assertEqual ( response . fromcache , True ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'PUT' , body = 'foo' , headers = { #NEWLINE# #INDENT# 'if-match' : 'fred' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status , 412 )