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