Пример #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)