From b32d51316660c0923eb132f0e3aaadd5b269bea9 Mon Sep 17 00:00:00 2001 From: Jonathan Lange Date: Fri, 11 Feb 2011 16:23:19 +0000 Subject: Parametrize the subunit input. --- python/subunit/tests/test_subunit_filter.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'python') 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) -- cgit v1.2.1