(self, test)
| 41 | return cases |
| 42 | |
| 43 | def addTest(self, test): |
| 44 | # sanity checks |
| 45 | if not callable(test): |
| 46 | raise TypeError("{} is not callable".format(repr(test))) |
| 47 | if isinstance(test, type) and issubclass(test, |
| 48 | (case.TestCase, TestSuite)): |
| 49 | raise TypeError("TestCases and TestSuites must be instantiated " |
| 50 | "before passing them to addTest()") |
| 51 | self._tests.append(test) |
| 52 | |
| 53 | def addTests(self, tests): |
| 54 | if isinstance(tests, str): |