summaryrefslogtreecommitdiff
path: root/python
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
commitb32d51316660c0923eb132f0e3aaadd5b269bea9 (patch)
tree364e7920cab63977534e218316d5189b06a7d74a /python
parent8313ffeb9ad36af77d29724e29b1801d80f8df7c (diff)
downloadsubunit-git-b32d51316660c0923eb132f0e3aaadd5b269bea9.tar.gz
Parametrize the subunit input.
Diffstat (limited to 'python')
-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)