#NEWLINE# def test_stream_is_cached( self , url ) : #NEWLINE# #INDENT# resp_1 = self . sess . get ( ( url + 'stream' ) ) #NEWLINE# content_1 = resp_1 . content #NEWLINE# resp_2 = self . sess . get ( ( url + 'stream' ) ) #NEWLINE# content_2 = resp_1 . content #NEWLINE# assert ( not resp_1 . from_cache ) #NEWLINE# assert resp_2 . from_cache #NEWLINE# assert ( content_1 == content_2 )