def testIsIntegeralWithPercent(self): p = DvProportion(1.2, 100, ProportionKind.pk_percent, 1); self.assertFalse( p.is_integral(), msg="percent expected not to be integral")
def testIsIntegeralWithFraction(self): p = DvProportion(1, 2, ProportionKind.pk_fraction, 0) self.assertTrue(p.is_integral(), msg="fraction expected to be integral")