#NEWLINE# def test_drain2( self ) : #NEWLINE# #INDENT# tmp = self . buf . drain ( ( len ( self . test_string ) - 1 ) ) #NEWLINE# self . assertIsNone ( tmp ) #NEWLINE# self . assertEqual ( self . buf . peek ( ( - 1 ) ) , '.' ) #NEWLINE# self . assertEqual ( len ( self . buf ) , 1 )