summaryrefslogtreecommitdiff
path: root/python/subunit
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2011-02-11 16:23:19 +0000
committerJonathan Lange <jml@canonical.com>2011-02-11 16:23:19 +0000
commit5c6f0c3aa33c1176949fdfd893c73a0d33762093 (patch)
tree364e7920cab63977534e218316d5189b06a7d74a /python/subunit
parent3a2faaa0dcc7f93d3c006dc7541046f1d42eaba7 (diff)
downloadsubunit-5c6f0c3aa33c1176949fdfd893c73a0d33762093.tar.gz
Parametrize the subunit input.
Diffstat (limited to 'python/subunit')
-rw-r--r--python/subunit/tests/test_subunit_filter.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py
index 2f26f39..69e32a0 100644
--- a/python/subunit/tests/test_subunit_filter.py
+++ b/python/subunit/tests/test_subunit_filter.py
@@ -119,9 +119,10 @@ xfail todo
# Only success should pass
self.assertEqual(1, filtered_result.testsRun)
- def run_tests(self, result_filter):
- input_stream = make_stream(self.example_subunit_stream)
- test = subunit.ProtocolTestCase(input_stream)
+ def run_tests(self, result_filter, input_stream=None):
+ if input_stream is None:
+ input_stream = self.example_subunit_stream
+ test = subunit.ProtocolTestCase(make_stream(input_stream))
test.run(result_filter)