Exemplo n.º 1
0
 def test_iter(self):
     a = Chain(range(2))
     it = iter(a)
     self.assertEqual(next(it), 0)
     self.assertEqual(next(it), 1)
     with self.assertRaises(StopIteration):
         next(it)