コード例 #1
0
    def test_annotate_any(self):
        x = MapAnnotation({'*': {'foo': 2}})
        self.assertDictEqual(x.annotate_any(), {'foo': 2})

        x = MapAnnotation()
        self.assertIsNone(x.annotate_any())
コード例 #2
0
    def test_annotate_any(self):
        x = MapAnnotation({'*': {'foo': 2}})
        assert x.annotate_any() == {'foo': 2}

        x = MapAnnotation()
        assert x.annotate_any() is None
コード例 #3
0
ファイル: test_annotations.py プロジェクト: itmustbejj/celery
    def test_annotate_any(self):
        x = MapAnnotation({'*': {"foo": 2}})
        self.assertDictEqual(x.annotate_any(), {"foo": 2})

        x = MapAnnotation()
        self.assertIsNone(x.annotate_any())
コード例 #4
0
    def test_annotate_any(self):
        x = MapAnnotation({'*': {'foo': 2}})
        assert x.annotate_any() == {'foo': 2}

        x = MapAnnotation()
        assert x.annotate_any() is None