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