Lines Matching refs:unittest
1 import unittest
6 from unittest.test.support import (LoggingResult,
10 class TestCleanUp(unittest.TestCase):
13 class TestableTest(unittest.TestCase):
42 class TestableTest(unittest.TestCase):
76 class TestableTest(unittest.TestCase):
101 result = unittest.TestResult()
118 class TestableTest(unittest.TestCase):
141 class Test_TextTestRunner(unittest.TestCase):
145 runner = unittest.TextTestRunner()
150 self.assertEqual(runner.resultclass, unittest.TextTestResult)
154 class AResult(unittest.TestResult):
158 class ATextResult(unittest.TextTestResult, AResult):
167 class Test(unittest.TestCase):
170 result = unittest.TestResult()
171 runner = unittest.TextTestRunner(stream=StringIO(), failfast=True,
181 class Test(unittest.TestCase):
184 originalRegisterResult = unittest.runner.registerResult
186 unittest.runner.registerResult = originalRegisterResult
189 result = unittest.TestResult()
190 runner = unittest.TextTestRunner(stream=StringIO())
198 unittest.runner.registerResult = fakeRegisterResult
200 runner.run(unittest.TestSuite())
209 class Runner(unittest.TextTestRunner):
217 runner.run(unittest.TestSuite())
225 class LoggingRunner(unittest.TextTestRunner):
235 runner.run(unittest.TestSuite())
245 runner = unittest.TextTestRunner(stream)
258 runner = unittest.TextTestRunner(STREAM, DESCRIPTIONS, VERBOSITY,
267 unittest.main()