#NEWLINE# def test_wrap_unicode( self ) : #NEWLINE# #INDENT# if ( sys . version_info [ 0 ] >= 3 ) : #NEWLINE# #INDENT# raise test . SkipTest #NEWLINE# #UNINDENT# text = unicode ( 'aaaaa bbbbb ccccc' ) #NEWLINE# new_text = misc . wrap ( parts , width = 5 ) #NEWLINE# parts = new_text . split ( '\n' ) #NEWLINE# self . eq ( len ( parts ) , 3 ) #NEWLINE# self . eq ( parts [ 1 ] , unicode ( 'bbbbb' ) ) #NEWLINE# new_text = misc . wrap ( text , width = 5 , indent = '***' ) #NEWLINE# parts = new_text . split ( '\n' ) #NEWLINE# self . eq ( parts [ 2 ] , unicode ( '***ccccc' ) )