Lines Matching refs:suite
101 suite = loader.loadTestsFromTestCase(Foo)
102 self.assertIsInstance(suite, loader.suiteClass)
103 self.assertEqual(list(suite), [Foo('runTest')])
120 suite = loader.loadTestsFromModule(m)
121 self.assertIsInstance(suite, loader.suiteClass)
124 self.assertEqual(list(suite), expected)
133 suite = loader.loadTestsFromModule(m)
134 self.assertIsInstance(suite, loader.suiteClass)
135 self.assertEqual(list(suite), [])
147 suite = loader.loadTestsFromModule(m)
148 self.assertIsInstance(suite, loader.suiteClass)
150 self.assertEqual(list(suite), [loader.suiteClass()])
171 suite = loader.loadTestsFromModule(NotAModule)
174 self.assertEqual(list(suite), reference)
195 suite = loader.loadTestsFromModule(m)
196 self.assertIsInstance(suite, unittest.TestSuite)
197 self.assertEqual(load_tests_args, [loader, suite, None])
203 suite = loader.loadTestsFromModule(m, use_load_tests=False)
204 self.assertEqual(load_tests_args, [loader, suite, None])
225 suite = loader.loadTestsFromModule(m, False)
226 self.assertIsInstance(suite, unittest.TestSuite)
229 self.assertEqual(load_tests_args, [loader, suite, None])
253 suite = loader.loadTestsFromModule(m, use_load_tests=False)
254 self.assertIsInstance(suite, unittest.TestSuite)
257 self.assertEqual(load_tests_args, [loader, suite, None])
334 suite = loader.loadTestsFromModule(m, pattern='testme.*')
335 self.assertIsInstance(suite, unittest.TestSuite)
336 self.assertEqual(load_tests_args, [loader, suite, 'testme.*'])
346 suite = loader.loadTestsFromModule(m)
347 self.assertIsInstance(suite, unittest.TestSuite)
348 self.assertEqual(suite.countTestCases(), 1)
356 test = list(suite)[0]
391 suite = loader.loadTestsFromName('abc () //')
392 error, test = self.check_deferred_error(loader, suite)
408 suite = loader.loadTestsFromName('sdasfasfasdf')
410 error, test = self.check_deferred_error(loader, suite)
425 suite = loader.loadTestsFromName('unittest.loader.sdasfasfasdf')
427 error, test = self.check_deferred_error(loader, suite)
442 suite = loader.loadTestsFromName('unittest.sdasfasfasdf')
444 error, test = self.check_deferred_error(loader, suite)
460 suite = loader.loadTestsFromName('sdasfasfasdf', unittest)
462 error, test = self.check_deferred_error(loader, suite)
482 suite = loader.loadTestsFromName('', unittest)
483 error, test = self.check_deferred_error(loader, suite)
503 suite = loader.loadTestsFromName('abc () //', unittest)
504 error, test = self.check_deferred_error(loader, suite)
531 suite = loader.loadTestsFromName('test_2', NotAModule)
534 self.assertEqual(list(suite), reference)
565 suite = loader.loadTestsFromName('testcase_1', m)
566 self.assertIsInstance(suite, loader.suiteClass)
567 self.assertEqual(list(suite), [MyTestCase('test')])
581 suite = loader.loadTestsFromName('testsuite', m)
582 self.assertIsInstance(suite, loader.suiteClass)
584 self.assertEqual(list(suite), [MyTestCase('test')])
596 suite = loader.loadTestsFromName('testcase_1.test', m)
597 self.assertIsInstance(suite, loader.suiteClass)
599 self.assertEqual(list(suite), [MyTestCase('test')])
617 suite = loader.loadTestsFromName('testcase_1.testfoo', m)
619 error, test = self.check_deferred_error(loader, suite)
636 suite = loader.loadTestsFromName('return_TestSuite', m)
637 self.assertIsInstance(suite, loader.suiteClass)
638 self.assertEqual(list(suite), [testcase_1, testcase_2])
650 suite = loader.loadTestsFromName('return_TestCase', m)
651 self.assertIsInstance(suite, loader.suiteClass)
652 self.assertEqual(list(suite), [testcase_1])
670 suite = loader.loadTestsFromName('return_TestCase', m)
671 self.assertIsInstance(suite, loader.suiteClass)
672 self.assertEqual(list(suite), [testcase_1])
690 suite = loader.loadTestsFromName('testcase_1.test', m)
691 self.assertIsInstance(suite, loader.suiteClass)
693 self.assertEqual(list(suite), [MyTestCase('test')])
707 suite = loader.loadTestsFromName('return_wrong', m)
724 suite = loader.loadTestsFromName(module_name)
726 self.assertIsInstance(suite, loader.suiteClass)
727 self.assertEqual(list(suite), [])
741 def check_deferred_error(self, loader, suite): argument
749 self.assertIsInstance(suite, unittest.TestSuite)
750 self.assertEqual(suite.countTestCases(), 1)
755 test = list(suite)[0]
765 suite = loader.loadTestsFromNames([])
766 self.assertIsInstance(suite, loader.suiteClass)
767 self.assertEqual(list(suite), [])
780 suite = loader.loadTestsFromNames([], unittest)
781 self.assertIsInstance(suite, loader.suiteClass)
782 self.assertEqual(list(suite), [])
810 suite = loader.loadTestsFromNames(['abc () //'])
811 error, test = self.check_deferred_error(loader, list(suite)[0])
829 suite = loader.loadTestsFromNames(['sdasfasfasdf'])
830 error, test = self.check_deferred_error(loader, list(suite)[0])
846 suite = loader.loadTestsFromNames(
848 error, test = self.check_deferred_error(loader, list(suite)[0])
867 suite = loader.loadTestsFromNames(['sdasfasfasdf'], unittest)
868 error, test = self.check_deferred_error(loader, list(suite)[0])
887 suite = loader.loadTestsFromNames(['TestCase', 'sdasfasfasdf'], unittest)
888 error, test = self.check_deferred_error(loader, list(suite)[1])
909 suite = loader.loadTestsFromNames([''], unittest)
910 error, test = self.check_deferred_error(loader, list(suite)[0])
929 suite = loader.loadTestsFromNames(['abc () //'], unittest)
930 error, test = self.check_deferred_error(loader, list(suite)[0])
955 suite = loader.loadTestsFromNames(['test_2'], NotAModule)
958 self.assertEqual(list(suite), reference)
989 suite = loader.loadTestsFromNames(['testcase_1'], m)
990 self.assertIsInstance(suite, loader.suiteClass)
993 self.assertEqual(list(suite), [expected])
1005 suite = loader.loadTestsFromNames(['testsuite'], m)
1006 self.assertIsInstance(suite, loader.suiteClass)
1008 self.assertEqual(list(suite), [m.testsuite])
1020 suite = loader.loadTestsFromNames(['testcase_1.test'], m)
1021 self.assertIsInstance(suite, loader.suiteClass)
1024 self.assertEqual(list(suite), [ref_suite])
1036 suite = loader.loadTestsFromNames(['testcase_1.test'], m)
1037 self.assertIsInstance(suite, loader.suiteClass)
1040 self.assertEqual(list(suite), [ref_suite])
1055 suite = loader.loadTestsFromNames(['testcase_1.testfoo'], m)
1056 error, test = self.check_deferred_error(loader, list(suite)[0])
1074 suite = loader.loadTestsFromNames(['return_TestSuite'], m)
1075 self.assertIsInstance(suite, loader.suiteClass)
1078 self.assertEqual(list(suite), [expected])
1090 suite = loader.loadTestsFromNames(['return_TestCase'], m)
1091 self.assertIsInstance(suite, loader.suiteClass)
1094 self.assertEqual(list(suite), [ref_suite])
1114 suite = loader.loadTestsFromNames(['Foo.foo'], m)
1115 self.assertIsInstance(suite, loader.suiteClass)
1118 self.assertEqual(list(suite), [ref_suite])
1132 suite = loader.loadTestsFromNames(['return_wrong'], m)
1149 suite = loader.loadTestsFromNames([module_name])
1151 self.assertIsInstance(suite, loader.suiteClass)
1152 self.assertEqual(list(suite), [unittest.TestSuite()])