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

All Samples(38)  |  Call(29)  |  Derive(0)  |  Import(9)

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/celery/tests/test_concurrency/test_concurrency_gevent.py   socorro(Download)
from __future__ import absolute_import
 
from nose import SkipTest
 
from celery.concurrency.gevent import TaskPool
    def test_grow(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.grow()
        self.assertEqual(pool._pool.size, 11)
 
    def test_grow_many(self):
        pool = TaskPool(10)
    def test_shrink(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink()
        self.assertEqual(pool._pool.size, 9)
 
    def test_shrink_many(self):
        pool = TaskPool(10)

src/m/o/mozillians-HEAD/vendor-local/lib/python/celery/tests/test_concurrency/test_concurrency_gevent.py   mozillians(Download)
from __future__ import absolute_import
 
from nose import SkipTest
 
from celery.concurrency.gevent import TaskPool
    def test_grow(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.grow()
        self.assertEqual(pool._pool.size, 11)
 
    def test_grow_many(self):
        pool = TaskPool(10)
    def test_shrink(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink()
        self.assertEqual(pool._pool.size, 9)
 
    def test_shrink_many(self):
        pool = TaskPool(10)

src/m/a/make.mozilla.org-HEAD/vendor-local/lib/python/celery/tests/test_concurrency/test_concurrency_gevent.py   make.mozilla.org(Download)
from __future__ import absolute_import
 
from nose import SkipTest
 
from celery.concurrency.gevent import TaskPool
    def test_grow(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.grow()
        self.assertEqual(pool._pool.size, 11)
 
    def test_grow_many(self):
        pool = TaskPool(10)
    def test_shrink(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink()
        self.assertEqual(pool._pool.size, 9)
 
    def test_shrink_many(self):
        pool = TaskPool(10)

src/p/l/playdoh-lib-HEAD/lib/python/celery/tests/test_concurrency/test_concurrency_gevent.py   playdoh-lib(Download)
from __future__ import absolute_import
 
from nose import SkipTest
 
from celery.concurrency.gevent import TaskPool
    def test_grow(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.grow()
        self.assertEqual(pool._pool.size, 11)
 
    def test_grow_many(self):
        pool = TaskPool(10)
    def test_shrink(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink()
        self.assertEqual(pool._pool.size, 9)
 
    def test_shrink_many(self):
        pool = TaskPool(10)

src/k/u/kuma-lib-HEAD/packages/celery/celery/tests/test_concurrency/test_concurrency_gevent.py   kuma-lib(Download)
from __future__ import absolute_import
 
from nose import SkipTest
 
from celery.concurrency.gevent import TaskPool
    def test_grow(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.grow()
        self.assertEqual(pool._pool.size, 11)
 
    def test_grow_many(self):
        pool = TaskPool(10)
    def test_shrink(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink()
        self.assertEqual(pool._pool.size, 9)
 
    def test_shrink_many(self):
        pool = TaskPool(10)

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/tests/concurrency/test_gevent.py   firefox-flicks(Download)
from mock import Mock
 
from celery.concurrency.gevent import (
    Schedule,
    Timer,
    def test_pool(self):
        with mock_module(*gevent_modules):
            with patch_many('gevent.spawn_raw', 'gevent.pool.Pool') as (
                    spawn_raw, Pool):
                x = TaskPool()

src/c/e/celery-HEAD/celery/tests/concurrency/test_gevent.py   celery(Download)
from __future__ import absolute_import
 
from celery.concurrency.gevent import (
    Schedule,
    Timer,
    def test_pool(self):
        with mock_module(*gevent_modules):
            with patch_many('gevent.spawn_raw', 'gevent.pool.Pool') as (
                    spawn_raw, Pool):
                x = TaskPool()

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/tests/concurrency/test_gevent.py   antisocial(Download)
from mock import Mock
 
from celery.concurrency.gevent import (
    Schedule,
    Timer,
    def test_pool(self):
        with mock_module(*gevent_modules):
            with patch_many('gevent.spawn_raw', 'gevent.pool.Pool') as (
                    spawn_raw, Pool):
                x = TaskPool()

src/c/e/celery-3.1.11/celery/tests/concurrency/test_gevent.py   celery(Download)
from __future__ import absolute_import
 
from celery.concurrency.gevent import (
    Schedule,
    Timer,
    def test_pool(self):
        with mock_module(*gevent_modules):
            with patch_many('gevent.spawn_raw', 'gevent.pool.Pool') as (
                    spawn_raw, Pool):
                x = TaskPool()