def test_two_iters(self): x = starmap(two_args, zip(range(100), range(100))) self.assertEqual( x, list(itertools.starmap(two_args, zip(range(100), range(100)))))
def test_no_args(): assert starmap(no_args, []) == []
def test_no_args(self): x = starmap(no_args, []) self.assertEqual(x, [])
def test_two_iters(xs, ys): expected = list(itertools.starmap(two_args, zip(xs, ys))) actual = starmap(two_args, zip(xs, ys)) assert actual == expected