def test_splitat(self): before, after = iters.splitat(2, iters.range(5)) self.assertEqual([0, 1], list(before)) self.assertEqual([2, 3, 4], list(after))
def test_splitat(self): before, after = iters.splitat(2, iters.range(5)) self.assertEqual([0,1], list(before)) self.assertEqual([2,3,4], list(after))