def METHOD_NAME(self):
    d = self.connector.getService()
    self.connector.app.gotConnection()
    yield d
    self.assertTrue(self.connector.master.running)
    self.connector.service.onLeave(None)
    self.assertFalse(self.connector.master.running)