#NEWLINE# def testOverrideEtag( self ) : #NEWLINE# #INDENT# uri = urllib . parse . urljoin ( base , 'reflector/reflector.cgi' ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'GET' ) #NEWLINE# self . assertNotEqual ( d [ 'etag' ] , '' ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'GET' , headers = { #NEWLINE# #INDENT# 'cache-control' : 'max-age=0' , #NEWLINE# #UNINDENT# } ) #NEWLINE# d = self . reflector ( content ) #NEWLINE# self . assertTrue ( ( 'HTTP_IF_NONE_MATCH' in d ) ) #NEWLINE# self . assertNotEqual ( d [ 'HTTP_IF_NONE_MATCH' ] , 'fred' ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'GET' , headers = { #NEWLINE# #INDENT# 'cache-control' : 'max-age=0' , #NEWLINE# 'if-none-match' : 'fred' , #NEWLINE# #UNINDENT# } ) #NEWLINE# d = self . reflector ( content ) #NEWLINE# self . assertTrue ( ( 'HTTP_IF_NONE_MATCH' in d ) ) #NEWLINE# self . assertEqual ( d [ 'HTTP_IF_NONE_MATCH' ] , 'fred' )