(self, test_name, verbosity, tearDownError=None)
| 616 | raise self.tearDownError |
| 617 | |
| 618 | def _run_test(self, test_name, verbosity, tearDownError=None): |
| 619 | stream = BufferedWriter() |
| 620 | stream = unittest.runner._WritelnDecorator(stream) |
| 621 | result = unittest.TextTestResult(stream, True, verbosity) |
| 622 | test = self.Test(test_name) |
| 623 | test.tearDownError = tearDownError |
| 624 | test.run(result) |
| 625 | return stream.getvalue() |
| 626 | |
| 627 | def testDotsOutput(self): |
| 628 | self.assertEqual(self._run_test('testSuccess', 1), '.') |
no test coverage detected