45
50
self.assertContainsRe(self._get_log(), 'a test message\n')
48
65
class TestSkippedTest(TestCase):
49
66
"""Try running a test which is skipped, make sure it's reported properly."""
50
67
def test_skipped_test(self):
51
68
# must be hidden in here so it's not run as a real test
53
70
raise TestSkipped('test intentionally skipped')
55
72
test = unittest.FunctionTestCase(skipping_test)
56
73
result = runner.run(test)
57
74
self.assertTrue(result.wasSuccessful())