def test_main(self): p, cd.Worker = cd.Worker, Worker s, sys.argv = sys.argv, ['celeryd', '--discard'] try: celeryd_main() finally: cd.Worker = p sys.argv = s
def test_main(self): p, cd.Worker = cd.Worker, Worker s, sys.argv = sys.argv, ["celeryd", "--discard"] try: celeryd_main() finally: cd.Worker = p sys.argv = s
def test_main(self): p, cd.Worker = cd.Worker, Worker s, sys.argv = sys.argv, ["celeryd", "--discard"] try: celeryd_main() finally: cd.Worker = p sys.argv = s