From 7aa495ccf553cf96c04cf2c2419aec8dd7465fac Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Tue, 28 Jul 2009 23:32:10 +1000 Subject: Basic progress support. --- python/subunit/tests/test_test_results.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'python/subunit/tests/test_test_results.py') diff --git a/python/subunit/tests/test_test_results.py b/python/subunit/tests/test_test_results.py index 2ba9198..4537304 100644 --- a/python/subunit/tests/test_test_results.py +++ b/python/subunit/tests/test_test_results.py @@ -108,6 +108,9 @@ class TestHookedTestResultDecorator(unittest.TestCase): def test_addUnexpectedSuccess(self): self.result.addUnexpectedSuccess(self) + def test_progress(self): + self.result.progress(1, os.SEEK_SET) + def test_wasSuccessful(self): self.result.wasSuccessful() @@ -135,6 +138,10 @@ class TestAutoTimingTestResultDecorator(unittest.TestCase): self.assertEqual(1, len(self.result.decorated._calls)) self.assertNotEqual(None, self.result.decorated._calls[0]) + def test_no_time_from_progress(self): + self.result.progress(1, os.SEEK_CUR) + self.assertEqual(0, len(self.result.decorated._calls)) + def test_no_time_from_shouldStop(self): self.result.decorated.stop() self.result.shouldStop -- cgit v1.2.1