@defer.deferredGenerator
    def stop(self):
        result = None
        app = self.app.name
        label = self.label
        d = self.server.manager.run("%(app)s stop %(label)s" % locals())
        wfd = defer.waitForDeferred(d)
        yield wfd
        result = wfd.getResult().values()[0]
        self.shouldBeRunning = False
        if self.server.hostname != config.HOSTNAME:
            self.updateInfo(result)
        if self.running:
            result = Failure(DroneCommandFailed(result))
        yield result
Test delete_super with CASCADE constraint
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/lib/droned/models/app.py/AppInstance.stop--crossover with--dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3model.py/S3SuperEntityTests.testDeleteSuperCascade