def test_scheduledThreadsNotRunUntilReactorRuns(self):
        def incAndFinish():
            self.counter = 1
            self.deferred.callback(True)
        self.schedule(incAndFinish)

        # Callback shouldn't have fired yet.
        self.assertEquals(self.counter, 0)

        return self.deferred
Scheduled tasks should not be run until the reactor starts running.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_internet.py/CallFromThreadTestCase.test_scheduledThreadsNotRunUntilReactorRuns