

def test_streaming_interrupt(self):
    cb = (lambda path, item: False)
    item.assertRaises(ParsingInterrupted, parse, '<a>x</a>', item_depth=1, item_callback=cb)

dataset/ETHPy150Open martinblech/xmltodict/tests/test_xmltodict.py XMLToDictTestCase.test_streaming_interrupt/VarMisuse@21/26 `self`->`item`