

def test_string_vs_file(self):
    xml = '<a>data</a>'
    self.assertEqual(parse(xml), parse(StringIO(_encode(xml))))

dataset/ETHPy150Open martinblech/xmltodict/tests/test_xmltodict.py XMLToDictTestCase.test_string_vs_file/original