def test_filterfalse(self): filtered = iters.filterfalse(lambda x: x > 10, [1, 2, 3, 11, 12]) self.assertEqual([1, 2, 3], list(filtered))
def test_filterfalse(self): l = iters.filterfalse(lambda x: x > 10, [1,2,3,11,12]) self.assertEqual([1,2,3], list(l))