예제 #1
0
 def testStop(self):
     result = FakeTestResult()
     runner = TestRunner((FakeDevice(),), (case,), result)
     runner.start()
     self.assertTrue(runner._running)
     runner.stop()
     self.assertFalse(runner._running)
예제 #2
0
 def testStop(self):
     result = FakeTestResult()
     runner = TestRunner((FakeDevice(), ), (case, ), result)
     runner.start()
     self.assertTrue(runner._running)
     runner.stop()
     self.assertFalse(runner._running)
예제 #3
0
 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)
예제 #4
0
 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)