'Once the service is stopped any leftover global deferred returned by
a sendGlobalRequest() call must be errbacked.'

def test_serviceStoppedCausesLeftoverGlobalDeferredsToErrback(self):

    self.conn.serviceStarted()
    d = self.conn.sendGlobalRequest('dummyrequest', 'dummydata', wantReply=1)
    d = self.assertFailure(d, error.ConchError)
    self.conn.serviceStopped()
    return d
