[Twisted-Python] Re: [Twisted-commits] tests for active
Itamar Shtull-Trauring
itamar at itamarst.org
Tue May 13 12:02:23 MDT 2003
> + def testActive(self):
> + dcall = reactor.callLater(0, lambda: None)
> + self.assertEquals(dcall.active(), True)
> + reactor.iterate()
> + self.assertEquals(dcall.active(), False)
> +
Can you please not use True/False/bool in tests? Yes, I know you can
import from compat, but half the time people'll forget to do that and
we'll have to go and fix the tests. Not everyone runs 2.2.2.
--
Itamar Shtull-Trauring http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting
More information about the Twisted-Python
mailing list