def test_one_iter(self): x = map(one_arg, range(100)) self.assertEqual(x, list(range(100)))
def test_two_iters(self): x = map(two_args, range(100), range(100, 200)) self.assertEqual(x, list(zip(range(100), range(100, 200))))
def test_no_args(self): x = map(no_args, []) self.assertEqual(x, [])