From 880b59bbe7356d8f2ca6af63f9ade6c20afdc478 Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Mon, 3 Aug 2009 08:55:36 +1000 Subject: Add --no-passthrough option to various filters. --- python/subunit/tests/test_test_protocol.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'python/subunit/tests') diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py index 5eedbf9..975d5b5 100644 --- a/python/subunit/tests/test_test_protocol.py +++ b/python/subunit/tests/test_test_protocol.py @@ -131,6 +131,7 @@ class TestMockTestProtocolServer(unittest.TestCase): class TestTestImports(unittest.TestCase): def test_imports(self): + from subunit import DiscardStream from subunit import TestProtocolServer from subunit import RemotedTestCase from subunit import RemoteError @@ -139,6 +140,12 @@ class TestTestImports(unittest.TestCase): from subunit import TestProtocolClient +class TestDiscardStream(unittest.TestCase): + + def test_write(self): + subunit.DiscardStream().write("content") + + class TestTestProtocolServerPipe(unittest.TestCase): def test_story(self): @@ -194,7 +201,6 @@ class TestTestProtocolServerStartTest(unittest.TestCase): class TestTestProtocolServerPassThrough(unittest.TestCase): def setUp(self): - from StringIO import StringIO self.stdout = StringIO() self.test = subunit.RemotedTestCase("old mcdonald") self.client = MockTestProtocolServerClient() -- cgit v1.2.1