#NEWLINE# def test_widechar( self ) : #NEWLINE# #INDENT# buf = self . buftype ( '𠌊𠍇' ) #NEWLINE# memio = self . ioclass ( buf ) #NEWLINE# self . assertEqual ( memio . getvalue ( ) , buf ) #NEWLINE# self . assertEqual ( memio . write ( buf ) , len ( buf ) ) #NEWLINE# self . assertEqual ( memio . tell ( ) , len ( buf ) ) #NEWLINE# self . assertEqual ( memio . getvalue ( ) , buf ) #NEWLINE# self . assertEqual ( memio . write ( buf ) , len ( buf ) ) #NEWLINE# self . assertEqual ( memio . tell ( ) , ( len ( buf ) * 2 ) ) #NEWLINE# self . assertEqual ( memio . getvalue ( ) , ( buf + buf ) )