Lines Matching refs:unittest

7 import unittest
8 from unittest.case import _Outcome
10 from unittest.test.support import (LoggingResult,
14 class TestCleanUp(unittest.TestCase):
17 class TestableTest(unittest.TestCase):
43 class TestableTest(unittest.TestCase):
73 class TestableTest(unittest.TestCase):
98 result = unittest.TestResult()
115 class TestableTest(unittest.TestCase):
138 class Test_TextTestRunner(unittest.TestCase):
154 runner = unittest.TextTestRunner()
160 self.assertEqual(runner.resultclass, unittest.TextTestResult)
164 class AResult(unittest.TestResult):
168 class ATextResult(unittest.TextTestResult, AResult):
176 class Test(unittest.TestCase):
179 result = unittest.TestResult()
180 runner = unittest.TextTestRunner(stream=io.StringIO(), failfast=True,
190 runner = unittest.TextTestRunner(stream=io.StringIO(), tb_locals=True)
191 result = runner.run(unittest.TestSuite())
195 class Test(unittest.TestCase):
198 originalRegisterResult = unittest.runner.registerResult
200 unittest.runner.registerResult = originalRegisterResult
203 result = unittest.TestResult()
204 runner = unittest.TextTestRunner(stream=io.StringIO())
212 unittest.runner.registerResult = fakeRegisterResult
214 runner.run(unittest.TestSuite())
223 class Runner(unittest.TextTestRunner):
231 runner.run(unittest.TestSuite())
239 class LoggingRunner(unittest.TextTestRunner):
249 runner.run(unittest.TestSuite())
257 runner = unittest.TextTestRunner(stream)
270 runner = unittest.TextTestRunner(STREAM, DESCRIPTIONS, VERBOSITY,
340 runner = unittest.TextTestRunner()
348 runner = unittest.TextTestRunner(f)
353 unittest.main()