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

All Samples(36)  |  Call(27)  |  Derive(0)  |  Import(9)

src/c/e/celery-3.1.11/celery/tests/app/test_annotations.py   celery(Download)
from __future__ import absolute_import
 
from celery.app.annotations import MapAnnotation, prepare
from celery.utils.imports import qualname
 
    def test_annotate(self):
        x = MapAnnotation({self.add.name: {'foo': 1}})
        self.assertDictEqual(x.annotate(self.add), {'foo': 1})
        self.assertIsNone(x.annotate(self.mul))
 
    def test_annotate_any(self):
        x = MapAnnotation({'*': {'foo': 2}})
        self.assertDictEqual(x.annotate_any(), {'foo': 2})
 
        x = MapAnnotation()

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/celery/tests/test_app/test_annotations.py   socorro(Download)
from __future__ import absolute_import
 
from celery.app.annotations import MapAnnotation, prepare
from celery.task import task
from celery.utils import qualname
    def test_annotate(self):
        x = MapAnnotation({add.name: {"foo": 1}})
        self.assertDictEqual(x.annotate(add), {"foo": 1})
        self.assertIsNone(x.annotate(mul))
 
    def test_annotate_any(self):
        x = MapAnnotation({'*': {"foo": 2}})
        self.assertDictEqual(x.annotate_any(), {"foo": 2})
 
        x = MapAnnotation()

src/c/e/celery-HEAD/celery/tests/app/test_annotations.py   celery(Download)
from __future__ import absolute_import
 
from celery.app.annotations import MapAnnotation, prepare
from celery.utils.imports import qualname
 
    def test_annotate(self):
        x = MapAnnotation({self.add.name: {'foo': 1}})
        self.assertDictEqual(x.annotate(self.add), {'foo': 1})
        self.assertIsNone(x.annotate(self.mul))
 
    def test_annotate_any(self):
        x = MapAnnotation({'*': {'foo': 2}})
        self.assertDictEqual(x.annotate_any(), {'foo': 2})
 
        x = MapAnnotation()

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/celery/tests/app/test_annotations.py   antisocial(Download)
from __future__ import absolute_import
 
from celery.app.annotations import MapAnnotation, prepare
from celery.task import task
from celery.utils.imports import qualname
    def test_annotate(self):
        x = MapAnnotation({add.name: {'foo': 1}})
        self.assertDictEqual(x.annotate(add), {'foo': 1})
        self.assertIsNone(x.annotate(mul))
 
    def test_annotate_any(self):
        x = MapAnnotation({'*': {'foo': 2}})
        self.assertDictEqual(x.annotate_any(), {'foo': 2})
 
        x = MapAnnotation()

src/m/o/mozillians-HEAD/vendor-local/lib/python/celery/tests/test_app/test_annotations.py   mozillians(Download)
from __future__ import absolute_import
 
from celery.app.annotations import MapAnnotation, prepare
from celery.task import task
from celery.utils import qualname
    def test_annotate(self):
        x = MapAnnotation({add.name: {"foo": 1}})
        self.assertDictEqual(x.annotate(add), {"foo": 1})
        self.assertIsNone(x.annotate(mul))
 
    def test_annotate_any(self):
        x = MapAnnotation({'*': {"foo": 2}})
        self.assertDictEqual(x.annotate_any(), {"foo": 2})
 
        x = MapAnnotation()

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/celery/tests/app/test_annotations.py   firefox-flicks(Download)
from __future__ import absolute_import
 
from celery.app.annotations import MapAnnotation, prepare
from celery.task import task
from celery.utils.imports import qualname
    def test_annotate(self):
        x = MapAnnotation({add.name: {'foo': 1}})
        self.assertDictEqual(x.annotate(add), {'foo': 1})
        self.assertIsNone(x.annotate(mul))
 
    def test_annotate_any(self):
        x = MapAnnotation({'*': {'foo': 2}})
        self.assertDictEqual(x.annotate_any(), {'foo': 2})
 
        x = MapAnnotation()

src/m/a/make.mozilla.org-HEAD/vendor-local/lib/python/celery/tests/test_app/test_annotations.py   make.mozilla.org(Download)
from __future__ import absolute_import
 
from celery.app.annotations import MapAnnotation, prepare
from celery.task import task
from celery.utils import qualname
    def test_annotate(self):
        x = MapAnnotation({add.name: {"foo": 1}})
        self.assertDictEqual(x.annotate(add), {"foo": 1})
        self.assertIsNone(x.annotate(mul))
 
    def test_annotate_any(self):
        x = MapAnnotation({'*': {"foo": 2}})
        self.assertDictEqual(x.annotate_any(), {"foo": 2})
 
        x = MapAnnotation()

src/p/l/playdoh-lib-HEAD/lib/python/celery/tests/test_app/test_annotations.py   playdoh-lib(Download)
from __future__ import absolute_import
 
from celery.app.annotations import MapAnnotation, prepare
from celery.task import task
from celery.utils import qualname
    def test_annotate(self):
        x = MapAnnotation({add.name: {"foo": 1}})
        self.assertDictEqual(x.annotate(add), {"foo": 1})
        self.assertIsNone(x.annotate(mul))
 
    def test_annotate_any(self):
        x = MapAnnotation({'*': {"foo": 2}})
        self.assertDictEqual(x.annotate_any(), {"foo": 2})
 
        x = MapAnnotation()

src/k/u/kuma-lib-HEAD/packages/celery/celery/tests/test_app/test_annotations.py   kuma-lib(Download)
from __future__ import absolute_import
 
from celery.app.annotations import MapAnnotation, prepare
from celery.task import task
from celery.utils import qualname
    def test_annotate(self):
        x = MapAnnotation({add.name: {"foo": 1}})
        self.assertDictEqual(x.annotate(add), {"foo": 1})
        self.assertIsNone(x.annotate(mul))
 
    def test_annotate_any(self):
        x = MapAnnotation({'*': {"foo": 2}})
        self.assertDictEqual(x.annotate_any(), {"foo": 2})
 
        x = MapAnnotation()