(self)
Check that conjugating a partition forms another partition.
Check that conjugating a partition forms another partition.
Check that conjugating a partition forms another partition .
def testConjugatePartition(self):
        """Check that conjugating a partition forms another partition."""
        for n in range(len(self.counts)):
            for p in partitions(n):
                c = conjugate(p)
                for x in c:
                    self.assert_(0 < x <= n)
                self.assertEqual(sum(c),n)
def testConjugatePartition ( self ) : for n in range ( len ( self . counts ) ) : for p in partitions ( n ) : c = conjugate ( p ) for x in c : self . assert_ ( 0 < x <= n ) self . assertEqual ( sum ( c ) , n )