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

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

src/c/e/celery-HEAD/celery/tests/app/test_annotations.py   celery(Download)
    def test_annotate_any(self):
        x = MapAnnotation({'*': {'foo': 2}})
        self.assertDictEqual(x.annotate_any(), {'foo': 2})
 
        x = MapAnnotation()
        self.assertIsNone(x.annotate_any())

src/c/e/celery-3.1.11/celery/tests/app/test_annotations.py   celery(Download)
    def test_annotate_any(self):
        x = MapAnnotation({'*': {'foo': 2}})
        self.assertDictEqual(x.annotate_any(), {'foo': 2})
 
        x = MapAnnotation()
        self.assertIsNone(x.annotate_any())