Lines Matching defs:tests
27 ### Set up attributes needed by inherited tests
42 ### /Set up attributes needed by inherited tests
47 # "class TestSuite([tests])"
49 # The tests iterable should be optional
54 # countTestCases() still works after tests are run
58 # "class TestSuite([tests])"
60 # "If tests is given, it must be an iterable of individual test cases
63 # TestSuite should deal with empty tests iterables by allowing the
69 # countTestCases() still works after tests are run
73 # "class TestSuite([tests])"
75 # "If tests is given, it must be an iterable of individual test cases
78 # TestSuite should allow any iterable to provide tests
80 def tests():
84 suite_1 = unittest.TestSuite(tests())
93 # countTestCases() still works after tests are run
101 # "class TestSuite([tests])"
103 # "If tests is given, it must be an iterable of individual test cases
107 # in the tests iterable?
109 def tests():
114 suite = unittest.TestSuite(tests())
116 # countTestCases() still works after tests are run
131 # "Return the number of tests represented by the this test object.
141 # "Return the number of tests represented by the this test object.
156 # "Return the number of tests represented by the this test object.
165 # countTestCases() still works after tests are run
169 # "Return the number of tests represented by the this test object.
185 # countTestCases() still works after tests are run
190 # "Run the tests associated with this suite, collecting the result into
193 # And if there are no tests? What then?
216 # "Run the tests associated with this suite, collecting the result into
229 tests = [LoggingCase('test1'), LoggingCase('test2')]
231 unittest.TestSuite(tests).run(result)
247 # countTestCases() still works after tests are run
263 # countTestCases() still works after tests are run
267 # "Add all the tests from an iterable of TestCase and TestSuite
270 # "This is equivalent to iterating over tests, calling addTest() for
291 # "This is equivalent to iterating over tests, calling addTest() for
299 # "Add all the tests from an iterable of TestCase and TestSuite