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(self): x = MapAnnotation({add.name: {"foo": 1}}) self.assertDictEqual(x.annotate(add), {"foo": 1}) self.assertIsNone(x.annotate(mul))
def test_annotate(self): x = MapAnnotation({self.add.name: {'foo': 1}}) assert x.annotate(self.add) == {'foo': 1} assert x.annotate(self.mul) is None