Lines Matching refs:unittest
6 import unittest
27 class Test_TestLoader(unittest.TestCase):
33 loader = unittest.TestLoader()
42 class Foo(unittest.TestCase):
47 tests = unittest.TestSuite([Foo('test_1'), Foo('test_2')])
49 loader = unittest.TestLoader()
57 class Foo(unittest.TestCase):
60 empty_suite = unittest.TestSuite()
62 loader = unittest.TestLoader()
75 class NotATestCase(unittest.TestSuite):
78 loader = unittest.TestLoader()
93 class Foo(unittest.TestCase):
97 loader = unittest.TestLoader()
114 class MyTestCase(unittest.TestCase):
119 loader = unittest.TestLoader()
132 loader = unittest.TestLoader()
142 class MyTestCase(unittest.TestCase):
146 loader = unittest.TestLoader()
163 class MyTestCase(unittest.TestCase):
170 loader = unittest.TestLoader()
173 reference = [unittest.TestSuite([MyTestCase('test')])]
182 class MyTestCase(unittest.TestCase):
189 self.assertIsInstance(tests, unittest.TestSuite)
194 loader = unittest.TestLoader()
196 self.assertIsInstance(suite, unittest.TestSuite)
209 class MyTestCase(unittest.TestCase):
216 self.assertIsInstance(tests, unittest.TestSuite)
221 loader = unittest.TestLoader()
226 self.assertIsInstance(suite, unittest.TestSuite)
238 class MyTestCase(unittest.TestCase):
245 self.assertIsInstance(tests, unittest.TestSuite)
250 loader = unittest.TestLoader()
254 self.assertIsInstance(suite, unittest.TestSuite)
266 class MyTestCase(unittest.TestCase):
273 self.assertIsInstance(tests, unittest.TestSuite)
277 loader = unittest.TestLoader()
295 class MyTestCase(unittest.TestCase):
302 self.assertIsInstance(tests, unittest.TestSuite)
306 loader = unittest.TestLoader()
321 class MyTestCase(unittest.TestCase):
328 self.assertIsInstance(tests, unittest.TestSuite)
333 loader = unittest.TestLoader()
335 self.assertIsInstance(suite, unittest.TestSuite)
345 loader = unittest.TestLoader()
347 self.assertIsInstance(suite, unittest.TestSuite)
373 loader = unittest.TestLoader()
389 loader = unittest.TestLoader()
406 loader = unittest.TestLoader()
423 loader = unittest.TestLoader()
440 loader = unittest.TestLoader()
458 loader = unittest.TestLoader()
460 suite = loader.loadTestsFromName('sdasfasfasdf', unittest)
480 loader = unittest.TestLoader()
482 suite = loader.loadTestsFromName('', unittest)
500 loader = unittest.TestLoader()
503 suite = loader.loadTestsFromName('abc () //', unittest)
523 class MyTestCase(unittest.TestCase):
530 loader = unittest.TestLoader()
547 loader = unittest.TestLoader()
559 class MyTestCase(unittest.TestCase):
564 loader = unittest.TestLoader()
575 class MyTestCase(unittest.TestCase):
578 m.testsuite = unittest.TestSuite([MyTestCase('test')])
580 loader = unittest.TestLoader()
590 class MyTestCase(unittest.TestCase):
595 loader = unittest.TestLoader()
611 class MyTestCase(unittest.TestCase):
616 loader = unittest.TestLoader()
629 testcase_1 = unittest.FunctionTestCase(lambda: None)
630 testcase_2 = unittest.FunctionTestCase(lambda: None)
632 return unittest.TestSuite([testcase_1, testcase_2])
635 loader = unittest.TestLoader()
644 testcase_1 = unittest.FunctionTestCase(lambda: None)
649 loader = unittest.TestLoader()
660 class SubTestSuite(unittest.TestSuite):
663 testcase_1 = unittest.FunctionTestCase(lambda: None)
668 loader = unittest.TestLoader()
680 class SubTestSuite(unittest.TestSuite):
683 class MyTestCase(unittest.TestCase):
688 loader = unittest.TestLoader()
705 loader = unittest.TestLoader()
722 loader = unittest.TestLoader()
749 self.assertIsInstance(suite, unittest.TestSuite)
763 loader = unittest.TestLoader()
778 loader = unittest.TestLoader()
780 suite = loader.loadTestsFromNames([], unittest)
791 loader = unittest.TestLoader()
807 loader = unittest.TestLoader()
827 loader = unittest.TestLoader()
844 loader = unittest.TestLoader()
865 loader = unittest.TestLoader()
867 suite = loader.loadTestsFromNames(['sdasfasfasdf'], unittest)
885 loader = unittest.TestLoader()
887 suite = loader.loadTestsFromNames(['TestCase', 'sdasfasfasdf'], unittest)
907 loader = unittest.TestLoader()
909 suite = loader.loadTestsFromNames([''], unittest)
926 loader = unittest.TestLoader()
929 suite = loader.loadTestsFromNames(['abc () //'], unittest)
947 class MyTestCase(unittest.TestCase):
954 loader = unittest.TestLoader()
957 reference = [unittest.TestSuite([MyTestCase('test')])]
971 loader = unittest.TestLoader()
983 class MyTestCase(unittest.TestCase):
988 loader = unittest.TestLoader()
999 class MyTestCase(unittest.TestCase):
1002 m.testsuite = unittest.TestSuite([MyTestCase('test')])
1004 loader = unittest.TestLoader()
1014 class MyTestCase(unittest.TestCase):
1019 loader = unittest.TestLoader()
1023 ref_suite = unittest.TestSuite([MyTestCase('test')])
1031 class MyTestCase(unittest.TestCase):
1035 loader = unittest.TestLoader()
1039 ref_suite = unittest.TestSuite([MyTestCase('test')])
1049 class MyTestCase(unittest.TestCase):
1054 loader = unittest.TestLoader()
1067 testcase_1 = unittest.FunctionTestCase(lambda: None)
1068 testcase_2 = unittest.FunctionTestCase(lambda: None)
1070 return unittest.TestSuite([testcase_1, testcase_2])
1073 loader = unittest.TestLoader()
1077 expected = unittest.TestSuite([testcase_1, testcase_2])
1084 testcase_1 = unittest.FunctionTestCase(lambda: None)
1089 loader = unittest.TestLoader()
1093 ref_suite = unittest.TestSuite([testcase_1])
1102 class Test1(unittest.TestCase):
1107 class Foo(unittest.TestCase):
1113 loader = unittest.TestLoader()
1117 ref_suite = unittest.TestSuite([testcase_1])
1130 loader = unittest.TestLoader()
1147 loader = unittest.TestLoader()
1152 self.assertEqual(list(suite), [unittest.TestSuite()])
1171 class Test(unittest.TestCase):
1176 loader = unittest.TestLoader()
1184 class Test(unittest.TestCase):
1187 loader = unittest.TestLoader()
1204 loader = unittest.TestLoader()
1216 class TestP(unittest.TestCase):
1225 loader = unittest.TestLoader()
1235 class MyTest(unittest.TestCase):
1240 loader = unittest.TestLoader()
1269 class MyTest(unittest.TestCase):
1273 loader = unittest.TestLoader()
1276 loader = unittest.TestLoader()
1292 class Foo(unittest.TestCase):
1297 tests_1 = unittest.TestSuite([Foo('foo_bar')])
1298 tests_2 = unittest.TestSuite([Foo('test_1'), Foo('test_2')])
1300 loader = unittest.TestLoader()
1314 class Foo(unittest.TestCase):
1320 tests_1 = [unittest.TestSuite([Foo('foo_bar')])]
1321 tests_2 = [unittest.TestSuite([Foo('test_1'), Foo('test_2')])]
1323 loader = unittest.TestLoader()
1337 class Foo(unittest.TestCase):
1343 tests_1 = unittest.TestSuite([Foo('foo_bar')])
1344 tests_2 = unittest.TestSuite([Foo('test_1'), Foo('test_2')])
1346 loader = unittest.TestLoader()
1360 class Foo(unittest.TestCase):
1366 tests_1 = unittest.TestSuite([unittest.TestSuite([Foo('foo_bar')])])
1367 tests_2 = unittest.TestSuite([Foo('test_1'), Foo('test_2')])
1368 tests_2 = unittest.TestSuite([tests_2])
1370 loader = unittest.TestLoader()
1379 loader = unittest.TestLoader()
1394 class Foo(unittest.TestCase):
1398 loader = unittest.TestLoader()
1411 class Foo(unittest.TestCase):
1416 loader = unittest.TestLoader()
1429 class Foo(unittest.TestCase):
1434 loader = unittest.TestLoader()
1447 class Foo(unittest.TestCase):
1452 loader = unittest.TestLoader()
1466 class Foo(unittest.TestCase):
1470 loader = unittest.TestLoader()
1480 loader = unittest.TestLoader()
1482 class Foo(unittest.TestCase):
1496 class Foo(unittest.TestCase):
1500 loader = unittest.TestLoader()
1514 class Foo(unittest.TestCase):
1521 loader = unittest.TestLoader()
1529 class Foo(unittest.TestCase):
1537 loader = unittest.TestLoader()
1545 class Foo(unittest.TestCase):
1553 loader = unittest.TestLoader()
1561 class Foo(unittest.TestCase):
1569 loader = unittest.TestLoader()
1575 loader = unittest.TestLoader()
1576 self.assertIs(loader.suiteClass, unittest.TestSuite)
1583 class Foo(unittest.TestCase):
1588 loader = unittest.TestLoader()
1595 unittest.main()