diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2011-05-09 23:00:42 +0200 |
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2011-05-09 23:00:42 +0200 |
| commit | d7f31020565d999ac02e460401068d3f7c70568d (patch) | |
| tree | 235ca0591ebc83fdf0aec7ebf8d38574dcb6f4ef /python | |
| parent | b8eb299487248e8ca1a53b2eeebe103b2757899b (diff) | |
| download | subunit-git-d7f31020565d999ac02e460401068d3f7c70568d.tar.gz | |
Add test to make sure addSkip is preserved.
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/tests/test_subunit_filter.py | 14 |
1 files changed, 14 insertions, 0 deletions
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() |
