• Home
  • Raw
  • Download

Lines Matching refs:unittest

1 import unittest
4 from unittest.test.support import LoggingResult, TestEquality
11 class Foo(unittest.TestCase):
18 return unittest.TestSuite(Test.Foo(n) for n in names)
23 class Test_TestSuite(unittest.TestCase, TestEquality):
29 eq_pairs = [(unittest.TestSuite(), unittest.TestSuite()),
30 (unittest.TestSuite(), unittest.TestSuite([])),
34 ne_pairs = [(unittest.TestSuite(), _mk_TestSuite('test_1')),
35 (unittest.TestSuite([]), _mk_TestSuite('test_1')),
49 suite = unittest.TestSuite()
61 suite = unittest.TestSuite([])
73 yield unittest.FunctionTestCase(lambda: None)
74 yield unittest.FunctionTestCase(lambda: None)
76 suite_1 = unittest.TestSuite(tests())
79 suite_2 = unittest.TestSuite(suite_1)
82 suite_3 = unittest.TestSuite(set(suite_1))
94 ftc = unittest.FunctionTestCase(lambda: None)
95 yield unittest.TestSuite([ftc])
96 yield unittest.FunctionTestCase(lambda: None)
98 suite = unittest.TestSuite(tests())
106 test1 = unittest.FunctionTestCase(lambda: None)
107 test2 = unittest.FunctionTestCase(lambda: None)
108 suite = unittest.TestSuite((test1, test2))
118 suite = unittest.TestSuite()
129 class Test1(unittest.TestCase):
133 suite = unittest.TestSuite([unittest.TestSuite()])
141 test1 = unittest.FunctionTestCase(lambda: None)
142 test2 = unittest.FunctionTestCase(lambda: None)
143 suite = unittest.TestSuite((test1, test2))
153 class Test1(unittest.TestCase):
157 test2 = unittest.FunctionTestCase(lambda: None)
158 test3 = unittest.FunctionTestCase(lambda: None)
159 child = unittest.TestSuite((Test1('test2'), test2))
160 parent = unittest.TestSuite((test3, child, Test1('test1')))
172 suite = unittest.TestSuite()
181 suite = unittest.TestSuite()
196 class LoggingCase(unittest.TestCase):
205 unittest.TestSuite(tests).run(result)
211 class Foo(unittest.TestCase):
215 suite = unittest.TestSuite()
224 class Foo(unittest.TestCase):
227 suite_2 = unittest.TestSuite([Foo('test')])
229 suite = unittest.TestSuite()
241 class Foo(unittest.TestCase):
247 inner_suite = unittest.TestSuite([test_2])
254 suite_1 = unittest.TestSuite()
261 suite_2 = unittest.TestSuite()
272 suite = unittest.TestSuite()
282 suite = unittest.TestSuite()
286 suite = unittest.TestSuite()
288 self.assertRaises(TypeError, suite.addTest, unittest.TestSuite)
291 suite = unittest.TestSuite()
297 suite = unittest.TestSuite()
301 suite.run(unittest.TestResult())
306 class Test(unittest.TestCase):
333 suite = unittest.BaseTestSuite()
337 result = unittest.TestResult()
349 class MySuite(unittest.TestSuite):
353 unittest.TestSuite.__call__(self, *args, **kw)
356 result = unittest.TestResult()
357 wrapper = unittest.TestSuite()
367 unittest.main()