Lines Matching refs:tests

8 # Decorator used in the deprecation tests to reset the warning registry for
29 ### Basic object tests
47 tests = unittest.TestSuite([Foo('test_1'), Foo('test_2')])
50 self.assertEqual(loader.loadTestsFromTestCase(Foo), tests)
55 # Make sure it does the right thing even if no tests were found
128 # What happens if no tests are found (no TestCase instances)?
139 # What happens if no tests are found (TestCases instances, but no tests)?
188 def load_tests(loader, tests, pattern):
189 self.assertIsInstance(tests, unittest.TestSuite)
190 load_tests_args.extend((loader, tests, pattern))
191 return tests
215 def load_tests(loader, tests, pattern):
216 self.assertIsInstance(tests, unittest.TestSuite)
217 load_tests_args.extend((loader, tests, pattern))
218 return tests
244 def load_tests(loader, tests, pattern):
245 self.assertIsInstance(tests, unittest.TestSuite)
246 load_tests_args.extend((loader, tests, pattern))
247 return tests
272 def load_tests(loader, tests, pattern):
273 self.assertIsInstance(tests, unittest.TestSuite)
274 load_tests_args.extend((loader, tests, pattern))
275 return tests
301 def load_tests(loader, tests, pattern):
302 self.assertIsInstance(tests, unittest.TestSuite)
303 load_tests_args.extend((loader, tests, pattern))
304 return tests
327 def load_tests(loader, tests, pattern):
328 self.assertIsInstance(tests, unittest.TestSuite)
329 load_tests_args.extend((loader, tests, pattern))
330 return tests
341 def load_tests(loader, tests, pattern):
1182 # Does getTestCaseNames() behave appropriately if no tests are found?
1232 # If TestLoader.testNamePatterns is set, only tests that match one of these
1259 # If TestLoader.testNamePatterns is set, only tests that match one of these
1401 tests = loader.suiteClass([Foo('test_2'), Foo('test_1')])
1402 self.assertEqual(loader.loadTestsFromTestCase(Foo), tests)
1419 tests = [loader.suiteClass([Foo('test_2'), Foo('test_1')])]
1420 self.assertEqual(list(loader.loadTestsFromModule(m)), tests)
1437 tests = loader.suiteClass([Foo('test_2'), Foo('test_1')])
1438 self.assertEqual(loader.loadTestsFromName('Foo', m), tests)
1455 tests = [loader.suiteClass([Foo('test_2'), Foo('test_1')])]
1456 self.assertEqual(list(loader.loadTestsFromNames(['Foo'], m)), tests)
1493 # XXX How is this different from reassigning cmp? Are the tests returned
1512 # "Callable object that constructs a test suite from a list of tests."
1519 tests = [Foo('test_1'), Foo('test_2')]
1523 self.assertEqual(loader.loadTestsFromTestCase(Foo), tests)
1535 tests = [[Foo('test_1'), Foo('test_2')]]
1539 self.assertEqual(loader.loadTestsFromModule(m), tests)
1551 tests = [Foo('test_1'), Foo('test_2')]
1555 self.assertEqual(loader.loadTestsFromName('Foo', m), tests)
1567 tests = [[Foo('test_1'), Foo('test_2')]]
1571 self.assertEqual(loader.loadTestsFromNames(['Foo'], m), tests)
1609 tests = unittest.getTestCaseNames(self.MyTestCase,
1613 self.assertEqual(tests, ['check_2', 'check_1'])