(self)
Check that all outputs are partitions of the input.
Check that all outputs are partitions of the input.
Check that all outputs are partitions of the input .
def testSums(self):
        """Check that all outputs are partitions of the input."""
        for n in range(len(self.counts)):
            for p in mckay(n):
                self.assertEqual(n,sum(p))
            for p in revlex_partitions(n):
                self.assertEqual(n,sum(p))
            for p in lex_partitions(n):
                self.assertEqual(n,sum(p))
def testSums ( self ) : for n in range ( len ( self . counts ) ) : for p in mckay ( n ) : self . assertEqual ( n , sum ( p ) ) for p in revlex_partitions ( n ) : self . assertEqual ( n , sum ( p ) ) for p in lex_partitions ( n ) : self . assertEqual ( n , sum ( p ) )