Пример #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
    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