def test_postprocessor_attribute(self):
        def postprocessor(path, key, value):
            try:
                return key + ':int', int(value)
            except (ValueError, __HOLE__):
                return key, value
        self.assertEqual({'a': {'@b:int': 1}},
                         parse('<a b="1"/>',
                               postprocessor=postprocessor))
dataset/ETHPy150Open martinblech/xmltodict/tests/test_xmltodict.py/XMLToDictTestCase.test_postprocessor_attribute