def testStop(self): result = FakeTestResult() runner = TestRunner((FakeDevice(),), (case,), result) runner.start() self.assertTrue(runner._running) runner.stop() self.assertFalse(runner._running)
def testStop(self): result = FakeTestResult() runner = TestRunner((FakeDevice(), ), (case, ), result) runner.start() self.assertTrue(runner._running) runner.stop() self.assertFalse(runner._running)
def testStartStopResult(self): result = FakeTestResult() runner = TestRunner((FakeDevice(),), (case,), result) runner.start() self.assertTrue(runner._running) result = runner.result.result self.failUnless(result and isinstance(result, TestResultContainer)) runner.stop() result = runner.result.result self.failIf(result)
def testStartStopResult(self): result = FakeTestResult() runner = TestRunner((FakeDevice(), ), (case, ), result) runner.start() self.assertTrue(runner._running) result = runner.result.result self.failUnless(result and isinstance(result, TestResultContainer)) runner.stop() result = runner.result.result self.failIf(result)