#NEWLINE# def testGetCacheControlPragmaNoCache( self ) : #NEWLINE# #INDENT# uri = urllib . parse . urljoin ( base , '304/test_etag.txt' ) #NEWLINE# ( response , content ) = self . http . request ( uri , 'GET' ) #NEWLINE# self . assertNotEqual ( response [ 'etag' ] , '' ) #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 , 'GET' , headers = { #NEWLINE# #INDENT# 'Pragma' : 'no-cache' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( self . status , 200 ) #NEWLINE# self . assertEqual ( response . fromcache , False )