def test_cancel(self):
        def factory(*args, **kw):
            factory.f = TestQueryFactoryCancel(*args, **kw)
            return factory.f
        d = self.proxy(factory).callRemote('add', 2, 3)
        self.assertNotEquals(factory.f.connector.state, "disconnected")
        d.cancel()
        self.assertEquals(factory.f.connector.state, "disconnected")
        d = self.assertFailure(d, defer.CancelledError)
        return d
Only work on systems that are a proxy minion
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_xmlrpc.py/XMLRPCTestCase.test_cancel--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/rest_service.py/__virtual__