Lines Matching refs:unittest
4 import unittest
8 return unittest.TestResult()
11 class TestSetups(unittest.TestCase):
14 return unittest.TextTestRunner(resultclass=resultFactory,
17 suite = unittest.TestSuite()
19 tests = unittest.defaultTestLoader.loadTestsFromTestCase(case)
25 realSuite = unittest.TestSuite()
28 suite.addTest(unittest.TestSuite())
29 realSuite.addTest(unittest.TestSuite())
33 class Test(unittest.TestCase):
38 unittest.TestCase.setUpClass()
51 class Test(unittest.TestCase):
56 unittest.TestCase.tearDownClass()
69 class Test(unittest.TestCase):
74 unittest.TestCase.tearDownClass()
80 class Test2(unittest.TestCase):
85 unittest.TestCase.tearDownClass()
99 class BrokenTest(unittest.TestCase):
117 class Test(unittest.TestCase):
128 class Test2(unittest.TestCase):
150 class Test(unittest.TestCase):
166 class Test(unittest.TestCase):
178 Test = unittest.skip("hop")(Test)
202 class Test1(unittest.TestCase):
214 class Test2(unittest.TestCase):
226 class Test3(unittest.TestCase):
243 first = unittest.TestSuite((Test1('testOne'),))
244 second = unittest.TestSuite((Test1('testTwo'),))
245 third = unittest.TestSuite((Test2('testOne'),))
246 fourth = unittest.TestSuite((Test2('testTwo'),))
247 fifth = unittest.TestSuite((Test3('testOne'),))
248 sixth = unittest.TestSuite((Test3('testTwo'),))
249 suite = unittest.TestSuite((first, second, third, fourth, fifth, sixth))
272 class Test(unittest.TestCase):
297 class Test(unittest.TestCase):
311 class Test2(unittest.TestCase):
331 class Test(unittest.TestCase):
349 class Test(unittest.TestCase):
370 class Test(unittest.TestCase):
384 class Test2(unittest.TestCase):
403 class Test(unittest.TestCase):
406 raise unittest.SkipTest('foo')
421 class Test(unittest.TestCase):
430 raise unittest.SkipTest('foo')
453 class Test(unittest.TestCase):
466 suite = unittest.defaultTestLoader.loadTestsFromTestCase(Test)
482 class Test(unittest.TestCase):
500 _suite = unittest.defaultTestLoader.loadTestsFromTestCase(Test)
501 suite = unittest.TestSuite([_suite])
507 unittest.main()