Lines Matching defs:Test
6 from unittest.test.support import LoggingResult, TestEquality
12 class Test(object):
20 return unittest.TestSuite(Test.Foo(n) for n in names)
60 # "If tests is given, it must be an iterable of individual test cases
61 # or other test suites that will be used to build the suite initially"
75 # "If tests is given, it must be an iterable of individual test cases
76 # or other test suites that will be used to build the suite initially"
103 # "If tests is given, it must be an iterable of individual test cases
104 # or other test suites that will be used to build the suite initially"
131 # "Return the number of tests represented by the this test object.
141 # "Return the number of tests represented by the this test object.
149 def test(self):
156 # "Return the number of tests represented by the this test object.
169 # "Return the number of tests represented by the this test object.
191 # the test result object passed as result."
217 # the test result object passed as result."
238 def test(self): pass
240 test = Foo('test')
243 suite.addTest(test)
246 self.assertEqual(list(suite), [test])
254 def test(self): pass
256 suite_2 = unittest.TestSuite([Foo('test')])
268 # instances to this test suite."
300 # instances to this test suite."
364 test = Foo('test_nothing')
365 wref = weakref.ref(test)
370 del test
385 class Test(unittest.TestCase):
408 Test.__module__ = 'Module'
413 suite.addTests([Test('testPass'), Test('testFail')])
420 self.assertFalse(Test.wasSetUp)
421 self.assertFalse(Test.wasTornDown)