Example #1
0
 def test_one(self):
     self.assertEqual(list(iterutils.iterate('foo')), ['foo'])
Example #2
0
 def test_many(self):
     self.assertEqual(list(iterutils.iterate(['foo', 'bar'])),
                      ['foo', 'bar'])
Example #3
0
 def test_none(self):
     self.assertEqual(list(iterutils.iterate(None)), [])