def test_discrete(self): a = Partition([[3],[1],[2]]) b = Partition([[1,2],[3],[4]]) self.assertTrue(a.discrete()) self.assertFalse(b.discrete())