コード例 #1
0
 def test_itertasks(self):
     s = State()
     s.tasks = {'a': 'a', 'b': 'b', 'c': 'c', 'd': 'd'}
     assert len(list(s.itertasks(limit=2))) == 2
コード例 #2
0
ファイル: test_state.py プロジェクト: ChillarAnand/celery
 def test_itertasks(self):
     s = State()
     s.tasks = {'a': 'a', 'b': 'b', 'c': 'c', 'd': 'd'}
     assert len(list(s.itertasks(limit=2))) == 2
コード例 #3
0
ファイル: test_state.py プロジェクト: aidan/celery
 def test_itertasks(self):
     s = State()
     s.tasks = {'a': 'a', 'b': 'b', 'c': 'c', 'd': 'd'}
     self.assertEqual(len(list(s.itertasks(limit=2))), 2)
コード例 #4
0
ファイル: test_state.py プロジェクト: wonderb0lt/celery
 def test_itertasks(self):
     s = State()
     s.tasks = {'a': 'a', 'b': 'b', 'c': 'c', 'd': 'd'}
     self.assertEqual(len(list(s.itertasks(limit=2))), 2)
コード例 #5
0
 def test_itertasks(self):
     s = State()
     s.tasks = {"a": "a", "b": "b", "c": "c", "d": "d"}
     self.assertEqual(len(list(s.itertasks(limit=2))), 2)
コード例 #6
0
ファイル: test_state.py プロジェクト: noamgal/celery
 def test_itertasks(self):
     s = State()
     s.tasks = {"a": "a", "b": "b", "c": "c", "d": "d"}
     self.assertEqual(len(list(s.itertasks(limit=2))), 2)