#NEWLINE# def test_voice_message( self ) : #NEWLINE# #INDENT# from wechatpy.messages import VoiceMessage #NEWLINE# msg = VoiceMessage ( { #NEWLINE# #INDENT# 'MediaId' : '123456' , #NEWLINE# 'Format' : 'aac' , #NEWLINE# 'Recognition' : 'test' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( '123456' , self . media_id ) #NEWLINE# self . assertEqual ( 'aac' , msg . format ) #NEWLINE# self . assertEqual ( 'test' , msg . recognition )