Lines Matching defs:tests

25     ### Set up attributes needed by inherited tests

40 ### /Set up attributes needed by inherited tests
45 # "class TestSuite([tests])"
47 # The tests iterable should be optional
53 # "class TestSuite([tests])"
55 # "If tests is given, it must be an iterable of individual test cases
58 # TestSuite should deal with empty tests iterables by allowing the
65 # "class TestSuite([tests])"
67 # "If tests is given, it must be an iterable of individual test cases
70 # TestSuite should allow any iterable to provide tests
72 def tests():
76 suite_1 = unittest.TestSuite(tests())
85 # "class TestSuite([tests])"
87 # "If tests is given, it must be an iterable of individual test cases
91 # in the tests iterable?
93 def tests():
98 suite = unittest.TestSuite(tests())
112 # "Return the number of tests represented by the this test object.
122 # "Return the number of tests represented by the this test object.
137 # "Return the number of tests represented by the this test object.
147 # "Return the number of tests represented by the this test object.
164 # "Run the tests associated with this suite, collecting the result into
167 # And if there are no tests? What then?
190 # "Run the tests associated with this suite, collecting the result into
203 tests = [LoggingCase('test1'), LoggingCase('test2')]
205 unittest.TestSuite(tests).run(result)
235 # "Add all the tests from an iterable of TestCase and TestSuite
238 # "This is equivalent to iterating over tests, calling addTest() for
259 # "This is equivalent to iterating over tests, calling addTest() for
267 # "Add all the tests from an iterable of TestCase and TestSuite