def testSetVolume(self): for volume in xrange(0, 100, 1): volume /= 100.0 self.engine.setProperty('volume', volume) self.engine.runAndWait() gvolume = self.engine.getProperty('volume') self.assertAlmostEqual(volume, gvolume, 4)
def testSetRate(self): for rate in xrange(100, 400, 10): self.engine.setProperty('rate', rate) self.engine.runAndWait() grate = self.engine.getProperty('rate') self.assert_(rate == grate)