#NEWLINE# def test_integer_field_to_xml( self ) : #NEWLINE# #INDENT# from wechatpy.fields import IntegerField #NEWLINE# name = 'Content' #NEWLINE# value = 0 #NEWLINE# expected = '<{name}>{value}</{name}>' . format ( name = name , value = value ) #NEWLINE# field = IntegerField ( name ) #NEWLINE# self . assertEqual ( expected , field . to_xml ( value ) )