• Home
  • Raw
  • Download

Lines Matching refs:unittest

5 import unittest
8 class Test_TestLoader(unittest.TestCase):
16 class Foo(unittest.TestCase):
21 tests = unittest.TestSuite([Foo('test_1'), Foo('test_2')])
23 loader = unittest.TestLoader()
31 class Foo(unittest.TestCase):
34 empty_suite = unittest.TestSuite()
36 loader = unittest.TestLoader()
49 class NotATestCase(unittest.TestSuite):
52 loader = unittest.TestLoader()
67 class Foo(unittest.TestCase):
71 loader = unittest.TestLoader()
88 class MyTestCase(unittest.TestCase):
93 loader = unittest.TestLoader()
106 loader = unittest.TestLoader()
116 class MyTestCase(unittest.TestCase):
120 loader = unittest.TestLoader()
137 class MyTestCase(unittest.TestCase):
144 loader = unittest.TestLoader()
147 reference = [unittest.TestSuite([MyTestCase('test')])]
155 class MyTestCase(unittest.TestCase):
162 self.assertIsInstance(tests, unittest.TestSuite)
167 loader = unittest.TestLoader()
169 self.assertIsInstance(suite, unittest.TestSuite)
183 loader = unittest.TestLoader()
185 self.assertIsInstance(suite, unittest.TestSuite)
204 loader = unittest.TestLoader()
220 loader = unittest.TestLoader()
237 loader = unittest.TestLoader()
253 loader = unittest.TestLoader()
270 loader = unittest.TestLoader()
273 loader.loadTestsFromName('sdasfasfasdf', unittest)
291 loader = unittest.TestLoader()
294 loader.loadTestsFromName('', unittest)
310 loader = unittest.TestLoader()
314 loader.loadTestsFromName('abc () //', unittest)
332 class MyTestCase(unittest.TestCase):
339 loader = unittest.TestLoader()
356 loader = unittest.TestLoader()
368 class MyTestCase(unittest.TestCase):
373 loader = unittest.TestLoader()
384 class MyTestCase(unittest.TestCase):
387 m.testsuite = unittest.TestSuite([MyTestCase('test')])
389 loader = unittest.TestLoader()
399 class MyTestCase(unittest.TestCase):
404 loader = unittest.TestLoader()
420 class MyTestCase(unittest.TestCase):
425 loader = unittest.TestLoader()
437 testcase_1 = unittest.FunctionTestCase(lambda: None)
438 testcase_2 = unittest.FunctionTestCase(lambda: None)
440 return unittest.TestSuite([testcase_1, testcase_2])
443 loader = unittest.TestLoader()
452 testcase_1 = unittest.FunctionTestCase(lambda: None)
457 loader = unittest.TestLoader()
468 class SubTestSuite(unittest.TestSuite):
471 testcase_1 = unittest.FunctionTestCase(lambda: None)
476 loader = unittest.TestLoader()
488 class SubTestSuite(unittest.TestSuite):
491 class MyTestCase(unittest.TestCase):
496 loader = unittest.TestLoader()
513 loader = unittest.TestLoader()
530 loader = unittest.TestLoader()
554 loader = unittest.TestLoader()
569 loader = unittest.TestLoader()
571 suite = loader.loadTestsFromNames([], unittest)
582 loader = unittest.TestLoader()
598 loader = unittest.TestLoader()
617 loader = unittest.TestLoader()
633 loader = unittest.TestLoader()
652 loader = unittest.TestLoader()
655 loader.loadTestsFromNames(['sdasfasfasdf'], unittest)
671 loader = unittest.TestLoader()
674 loader.loadTestsFromNames(['TestCase', 'sdasfasfasdf'], unittest)
692 loader = unittest.TestLoader()
695 loader.loadTestsFromNames([''], unittest)
710 loader = unittest.TestLoader()
714 loader.loadTestsFromNames(['abc () //'], unittest)
730 class MyTestCase(unittest.TestCase):
737 loader = unittest.TestLoader()
740 reference = [unittest.TestSuite([MyTestCase('test')])]
754 loader = unittest.TestLoader()
766 class MyTestCase(unittest.TestCase):
771 loader = unittest.TestLoader()
782 class MyTestCase(unittest.TestCase):
785 m.testsuite = unittest.TestSuite([MyTestCase('test')])
787 loader = unittest.TestLoader()
797 class MyTestCase(unittest.TestCase):
802 loader = unittest.TestLoader()
806 ref_suite = unittest.TestSuite([MyTestCase('test')])
816 class MyTestCase(unittest.TestCase):
821 loader = unittest.TestLoader()
833 testcase_1 = unittest.FunctionTestCase(lambda: None)
834 testcase_2 = unittest.FunctionTestCase(lambda: None)
836 return unittest.TestSuite([testcase_1, testcase_2])
839 loader = unittest.TestLoader()
843 expected = unittest.TestSuite([testcase_1, testcase_2])
850 testcase_1 = unittest.FunctionTestCase(lambda: None)
855 loader = unittest.TestLoader()
859 ref_suite = unittest.TestSuite([testcase_1])
868 class Test1(unittest.TestCase):
873 class Foo(unittest.TestCase):
879 loader = unittest.TestLoader()
883 ref_suite = unittest.TestSuite([testcase_1])
896 loader = unittest.TestLoader()
913 loader = unittest.TestLoader()
918 self.assertEqual(list(suite), [unittest.TestSuite()])
937 class Test(unittest.TestCase):
942 loader = unittest.TestLoader()
950 class Test(unittest.TestCase):
953 loader = unittest.TestLoader()
970 loader = unittest.TestLoader()
982 class TestP(unittest.TestCase):
991 loader = unittest.TestLoader()
1008 class Foo(unittest.TestCase):
1013 tests_1 = unittest.TestSuite([Foo('foo_bar')])
1014 tests_2 = unittest.TestSuite([Foo('test_1'), Foo('test_2')])
1016 loader = unittest.TestLoader()
1030 class Foo(unittest.TestCase):
1036 tests_1 = [unittest.TestSuite([Foo('foo_bar')])]
1037 tests_2 = [unittest.TestSuite([Foo('test_1'), Foo('test_2')])]
1039 loader = unittest.TestLoader()
1053 class Foo(unittest.TestCase):
1059 tests_1 = unittest.TestSuite([Foo('foo_bar')])
1060 tests_2 = unittest.TestSuite([Foo('test_1'), Foo('test_2')])
1062 loader = unittest.TestLoader()
1076 class Foo(unittest.TestCase):
1082 tests_1 = unittest.TestSuite([unittest.TestSuite([Foo('foo_bar')])])
1083 tests_2 = unittest.TestSuite([Foo('test_1'), Foo('test_2')])
1084 tests_2 = unittest.TestSuite([tests_2])
1086 loader = unittest.TestLoader()
1095 loader = unittest.TestLoader()
1110 class Foo(unittest.TestCase):
1114 loader = unittest.TestLoader()
1127 class Foo(unittest.TestCase):
1132 loader = unittest.TestLoader()
1145 class Foo(unittest.TestCase):
1150 loader = unittest.TestLoader()
1163 class Foo(unittest.TestCase):
1168 loader = unittest.TestLoader()
1182 class Foo(unittest.TestCase):
1186 loader = unittest.TestLoader()
1194 loader = unittest.TestLoader()
1202 class Foo(unittest.TestCase):
1206 loader = unittest.TestLoader()
1220 class Foo(unittest.TestCase):
1227 loader = unittest.TestLoader()
1235 class Foo(unittest.TestCase):
1243 loader = unittest.TestLoader()
1251 class Foo(unittest.TestCase):
1259 loader = unittest.TestLoader()
1267 class Foo(unittest.TestCase):
1275 loader = unittest.TestLoader()
1281 loader = unittest.TestLoader()
1282 self.assertIs(loader.suiteClass, unittest.TestSuite)
1289 class MyTestCase(unittest.TestCase):
1293 loader = unittest.TestLoader()
1297 ref_suite = unittest.TestSuite([MyTestCase('test')])
1301 unittest.main()