#NEWLINE# def test_storage_never_expire( self ) : #NEWLINE# #INDENT# with self . _storage ( HTTPCACHE_EXPIRATION_SECS = 0 ) as storage : #NEWLINE# #INDENT# assert ( storage . retrieve_response ( self . spider , self . request ) is None ) #NEWLINE# storage . store_response ( self . spider , self . request , self . response ) #NEWLINE# time . sleep ( 0.5 ) #NEWLINE# assert storage . retrieve_response ( self . spider , self . request )