Lines Matching defs:Test
4 from unittest.test.support import LoggingResult, TestEquality
10 class Test(object):
18 return unittest.TestSuite(Test.Foo(n) for n in names)
55 # "If tests is given, it must be an iterable of individual test cases
56 # or other test suites that will be used to build the suite initially"
67 # "If tests is given, it must be an iterable of individual test cases
68 # or other test suites that will be used to build the suite initially"
87 # "If tests is given, it must be an iterable of individual test cases
88 # or other test suites that will be used to build the suite initially"
112 # "Return the number of tests represented by the this test object.
122 # "Return the number of tests represented by the this test object.
130 def test(self):
137 # "Return the number of tests represented by the this test object.
147 # "Return the number of tests represented by the this test object.
165 # the test result object passed as result."
191 # the test result object passed as result."
212 def test(self): pass
214 test = Foo('test')
217 suite.addTest(test)
220 self.assertEqual(list(suite), [test])
225 def test(self): pass
227 suite_2 = unittest.TestSuite([Foo('test')])
236 # instances to this test suite."
268 # instances to this test suite."
306 class Test(unittest.TestCase):
329 Test.__module__ = 'Module'
334 suite.addTests([Test('testPass'), Test('testFail')])
341 self.assertFalse(Test.wasSetUp)
342 self.assertFalse(Test.wasTornDown)