def test_preprocessor(self):
        obj = {'a': OrderedDict((('b:int', [1, 2]), ('b', 'c')))}

        def p(key, value):
            try:
                key, _ = key.split(':')
            except __HOLE__:
                pass
            return key, value

        self.assertEqual(_strip(unparse(obj, preprocessor=p)),
                         '<a><b>1</b><b>2</b><b>c</b></a>')
dataset/ETHPy150Open martinblech/xmltodict/tests/test_dicttoxml.py/DictToXMLTestCase.test_preprocessor