예제 #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