def test_parse_options(self): opts = cd.parse_options(["--concurrency=512"]) self.assertEqual(opts.concurrency, 512)
def run_celery(self): # Use celeryd's optparser. options = parse_options(sys.argv[2:]) run_worker(**vars(options))