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

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/celery/tests/test_concurrency/test_concurrency_gevent.py   socorro(Download)
    def test_shrink(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink()
    def test_shrink_many(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink(2)

src/m/o/mozillians-HEAD/vendor-local/lib/python/celery/tests/test_concurrency/test_concurrency_gevent.py   mozillians(Download)
    def test_shrink(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink()
    def test_shrink_many(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink(2)

src/m/a/make.mozilla.org-HEAD/vendor-local/lib/python/celery/tests/test_concurrency/test_concurrency_gevent.py   make.mozilla.org(Download)
    def test_shrink(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink()
    def test_shrink_many(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink(2)

src/p/l/playdoh-lib-HEAD/lib/python/celery/tests/test_concurrency/test_concurrency_gevent.py   playdoh-lib(Download)
    def test_shrink(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink()
    def test_shrink_many(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink(2)

src/k/u/kuma-lib-HEAD/packages/celery/celery/tests/test_concurrency/test_concurrency_gevent.py   kuma-lib(Download)
    def test_shrink(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink()
    def test_shrink_many(self):
        pool = TaskPool(10)
        pool.start()
        self.assertEqual(pool._pool.size, 10)
        pool.shrink(2)

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/tests/concurrency/test_gevent.py   firefox-flicks(Download)
                self.assertEqual(x._pool.size, 2)
                self.assertEqual(x._pool._semaphore.counter, 2)
                x.shrink()
                self.assertEqual(x._pool.size, 1)
                self.assertEqual(x._pool._semaphore.counter, 1)

src/c/e/celery-HEAD/celery/tests/concurrency/test_gevent.py   celery(Download)
                self.assertEqual(x._pool.size, 2)
                self.assertEqual(x._pool._semaphore.counter, 2)
                x.shrink()
                self.assertEqual(x._pool.size, 1)
                self.assertEqual(x._pool._semaphore.counter, 1)

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/tests/concurrency/test_gevent.py   antisocial(Download)
                self.assertEqual(x._pool.size, 2)
                self.assertEqual(x._pool._semaphore.counter, 2)
                x.shrink()
                self.assertEqual(x._pool.size, 1)
                self.assertEqual(x._pool._semaphore.counter, 1)

src/c/e/celery-3.1.11/celery/tests/concurrency/test_gevent.py   celery(Download)
                self.assertEqual(x._pool.size, 2)
                self.assertEqual(x._pool._semaphore.counter, 2)
                x.shrink()
                self.assertEqual(x._pool.size, 1)
                self.assertEqual(x._pool._semaphore.counter, 1)