def test_powerset(self): ps = iters.powerset([1, 2]) self.assertEqual([tuple(), (1, ), (2, ), (1, 2)], list(ps))
def test_powerset(self): ps = iters.powerset([1,2]) self.assertEqual([tuple(),(1,),(2,),(1,2)], list(ps))