def test_itertasks(self): s = State() s.tasks = {'a': 'a', 'b': 'b', 'c': 'c', 'd': 'd'} assert len(list(s.itertasks(limit=2))) == 2
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)
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)