#NEWLINE# def testAttributeValueToStringWhenCharsNeedingEscaping( self ) : #NEWLINE# #INDENT# 'Test _AttributeValueToString().' #NEWLINE# chars = [ '"' , '+' , ',' , ';' , '<' , '>' , '\\' ] #NEWLINE# for c in chars : #NEWLINE# #INDENT# value = ( 'new%syork' % result ) #NEWLINE# expected = ( 'new\\%syork' % c ) #NEWLINE# result = self . x . _AttributeValueToString ( value ) #NEWLINE# self . assertEqual ( expected , result )