def main(): config.parse_args(sys.argv) logging.setup("rack") utils.monkey_patch() server = service.Service.create(binary="rack-resourceoperator", topic=CONF.resourceoperator_topic) service.serve(server) service.wait()
def test_launch_app(self): service.serve(self.service) self.assertNotEqual(0, self.service.port) service._launcher.stop()