Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/__main__.py   antisocial(Download)
def _compat_multi():
    maybe_patch_concurrency()
    from celery.bin.celeryd_multi import main
    main()
 

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/__main__.py   firefox-flicks(Download)
def _compat_multi():
    maybe_patch_concurrency()
    from celery.bin.celeryd_multi import main
    main()
 

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/tests/bin/test_celeryd_multi.py   antisocial(Download)
from mock import Mock, patch
 
from celery.bin.celeryd_multi import (
    main,
    MultiTool,
    def test_main(self, MultiTool):
        m = MultiTool.return_value = Mock()
        with self.assertRaises(SystemExit):
            main()
        m.execute_from_commandline.assert_called_with(sys.argv)

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/tests/bin/test_celeryd_multi.py   firefox-flicks(Download)
from mock import Mock, patch
 
from celery.bin.celeryd_multi import (
    main,
    MultiTool,
    def test_main(self, MultiTool):
        m = MultiTool.return_value = Mock()
        with self.assertRaises(SystemExit):
            main()
        m.execute_from_commandline.assert_called_with(sys.argv)