def test_encoding(self):
        try:
            value = unichr(39321)
        except __HOLE__:
            value = chr(39321)
        obj = {'a': value}
        utf8doc = unparse(obj, encoding='utf-8')
        latin1doc = unparse(obj, encoding='iso-8859-1')
        self.assertEqual(parse(utf8doc), parse(latin1doc))
        self.assertEqual(parse(utf8doc), obj)
dataset/ETHPy150Open martinblech/xmltodict/tests/test_dicttoxml.py/DictToXMLTestCase.test_encoding