#NEWLINE# def test_no_preload( self ) : #NEWLINE# #INDENT# fp = BytesIO ( b'foo' ) #NEWLINE# r = HTTPResponse ( fp , preload_content = False ) #NEWLINE# self . assertEqual ( fp . tell ( ) , 0 ) #NEWLINE# self . assertEqual ( r . data , b'foo' ) #NEWLINE# self . assertEqual ( fp . tell ( ) , len ( b'foo' ) )