From 04bd9bda6802f1362c67b6f5edd6946cf02ddbc7 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 9 May 2011 23:00:42 +0200 Subject: Add test to make sure addSkip is preserved. --- python/subunit/tests/test_subunit_filter.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'python/subunit') diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py index 87d4209..0675484 100644 --- a/python/subunit/tests/test_subunit_filter.py +++ b/python/subunit/tests/test_subunit_filter.py @@ -187,6 +187,20 @@ xfail todo ('stopTest', foo), ('time', date_c)], result._events) + def test_skip_preserved(self): + subunit_stream = _b('\n'.join([ + "test: foo", + "skip: foo", + ""])) + result = ExtendedTestResult() + result_filter = TestResultFilter(result) + self.run_tests(result_filter, subunit_stream) + foo = subunit.RemotedTestCase('foo') + self.assertEquals( + [('startTest', foo), + ('addSkip', foo, {}), + ('stopTest', foo), ], result._events) + def test_suite(): loader = subunit.tests.TestUtil.TestLoader() -- cgit v1.2.1