コード例 #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
ファイル: test_annotations.py プロジェクト: itmustbejj/celery
 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