'Verify that a canceller is given the correct deferred argument.'

def test_cancellerArg(self):

    def cancel(d1):
        self.assertIs(d1, d)
    d = defer.Deferred(canceller=cancel)
    d.addCallbacks(self._callback, self._errback)
    d.cancel()
