diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-08-05 15:41:29 +1000 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-08-05 15:41:29 +1000 |
| commit | 27837a1f2a6a0a820cecfee674fac5592970a493 (patch) | |
| tree | ed3bbac1e6e94b16834fc9d4e9b98bc92931c2ce /python/subunit/tests/test_test_protocol.py | |
| parent | 2ff41c1b09f13b1c8e6de5222033984c1511d597 (diff) | |
| parent | 28e9a4580f7a6b1c1b70395d3c2cf1a2971489a8 (diff) | |
| download | subunit-git-27837a1f2a6a0a820cecfee674fac5592970a493.tar.gz | |
Add --no-passthrough option to most filters.
Diffstat (limited to 'python/subunit/tests/test_test_protocol.py')
| -rw-r--r-- | python/subunit/tests/test_test_protocol.py | 8 |
1 files changed, 7 insertions, 1 deletions
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() |
