#NEWLINE# def test__bytes_remaining_start_zero_shorter_than_buffer( self ) : #NEWLINE# #INDENT# from io import BytesIO #NEWLINE# CONTENT = b'CONTENT GOES HERE' #NEWLINE# START = 8 #NEWLINE# BUFSIZE = 10 #NEWLINE# stream = BytesIO ( CONTENT ) #NEWLINE# stream . read ( START ) #NEWLINE# bufstream = self . _makeOne ( stream , START , self ) #NEWLINE# self . assertEqual ( bufstream . _bytes_remaining , ( len ( CONTENT ) - START ) )