(self)
| 23 | class TestTests(unittest.TestCase): |
| 24 | |
| 25 | def test_tests_fail_1(self): |
| 26 | SimpleTestCase = types.new_class('SimpleTestCase', |
| 27 | (BaseSimpleTestCase, tb.TestCase)) |
| 28 | |
| 29 | suite = unittest.TestSuite() |
| 30 | suite.addTest(SimpleTestCase('test_tests_zero_error')) |
| 31 | |
| 32 | result = unittest.TestResult() |
| 33 | suite.run(result) |
| 34 | |
| 35 | self.assertIn('ZeroDivisionError', result.errors[0][1]) |
| 36 | |
| 37 | |
| 38 | class TestHelpers(tb.TestCase): |