Пример #1
0
 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))
Пример #2
0
 def test_annotate(self):
     x = MapAnnotation({add.name: {"foo": 1}})
     self.assertDictEqual(x.annotate(add), {"foo": 1})
     self.assertIsNone(x.annotate(mul))
Пример #3
0
 def test_annotate(self):
     x = MapAnnotation({add.name: {"foo": 1}})
     self.assertDictEqual(x.annotate(add), {"foo": 1})
     self.assertIsNone(x.annotate(mul))
Пример #4
0
 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))
Пример #5
0
 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
Пример #6
0
 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