Lines Matching refs:unittest
5 import unittest
9 return unittest.TestResult()
12 class TestSetups(unittest.TestCase):
15 return unittest.TextTestRunner(resultclass=resultFactory,
18 suite = unittest.TestSuite()
20 tests = unittest.defaultTestLoader.loadTestsFromTestCase(case)
26 realSuite = unittest.TestSuite()
29 suite.addTest(unittest.TestSuite())
30 realSuite.addTest(unittest.TestSuite())
34 class Test(unittest.TestCase):
39 unittest.TestCase.setUpClass()
52 class Test(unittest.TestCase):
57 unittest.TestCase.tearDownClass()
70 class Test(unittest.TestCase):
75 unittest.TestCase.tearDownClass()
81 class Test2(unittest.TestCase):
86 unittest.TestCase.tearDownClass()
100 class BrokenTest(unittest.TestCase):
118 class Test(unittest.TestCase):
129 class Test2(unittest.TestCase):
151 class Test(unittest.TestCase):
167 class Test(unittest.TestCase):
179 Test = unittest.skip("hop")(Test)
203 class Test1(unittest.TestCase):
215 class Test2(unittest.TestCase):
227 class Test3(unittest.TestCase):
244 first = unittest.TestSuite((Test1('testOne'),))
245 second = unittest.TestSuite((Test1('testTwo'),))
246 third = unittest.TestSuite((Test2('testOne'),))
247 fourth = unittest.TestSuite((Test2('testTwo'),))
248 fifth = unittest.TestSuite((Test3('testOne'),))
249 sixth = unittest.TestSuite((Test3('testTwo'),))
250 suite = unittest.TestSuite((first, second, third, fourth, fifth, sixth))
273 class Test(unittest.TestCase):
298 class Test(unittest.TestCase):
312 class Test2(unittest.TestCase):
332 class Test(unittest.TestCase):
350 class Test(unittest.TestCase):
371 class Test(unittest.TestCase):
385 class Test2(unittest.TestCase):
404 class Test(unittest.TestCase):
407 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):
498 _suite = unittest.defaultTestLoader.loadTestsFromTestCase(Test)
499 suite = unittest.TestSuite()
508 unittest.main()