def test_connect_deferred(self):
        er = EventualResult(None, None)
        self.assertRaises(TimeoutError, er.wait, 0)
        d = Deferred()
        er._connect_deferred(d)
        self.assertRaises(TimeoutError, er.wait, 0)
        d.callback(123)
        self.assertEqual(er.wait(), 123)
Escape a string for inclusion in XML.
dataset/ETHPy150Open itamarst/crochet/crochet/tests/test_api.py/EventualResultTests.test_connect_deferred--crossover with--dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/easy_xml.py/_XmlEscape