#NEWLINE# def testSerialization( self ) : #NEWLINE# #INDENT# expected = 'gAEAAQAAAAJoaQAAAAALAAEAAAARdGhpc19pc190ZXN0X2RhdGEA' . decode ( 'base64' ) #NEWLINE# s = MessageSerializer ( Hello . Iface ) #NEWLINE# mcm = MethodCallMessage ( Hello . Iface , 'hi' , ( 'this_is_test_data' , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# buf = StringIO ( ) #NEWLINE# s . SerializeThriftCall ( mcm , buf ) #NEWLINE# self . assertEqual ( buf . getvalue ( ) , expected )