summaryrefslogtreecommitdiff
path: root/python/subunit/tests
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2008-06-19 10:55:24 +1000
committerJonathan Lange <jml@canonical.com>2008-06-19 10:55:24 +1000
commit150a47e415a72cf43b06b024faf8ea7aee0ab281 (patch)
treed1984a9157cbb01e7e29906ee1f2f8d1b17aff7c /python/subunit/tests
parent430fb492198e04da4f1331c2357147f53938613d (diff)
downloadsubunit-git-150a47e415a72cf43b06b024faf8ea7aee0ab281.tar.gz
Split tracebacks by *line* rather than by any whitespace.
Diffstat (limited to 'python/subunit/tests')
-rw-r--r--python/subunit/tests/test_test_protocol.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py
index 5fd8e36..0b9fc77 100644
--- a/python/subunit/tests/test_test_protocol.py
+++ b/python/subunit/tests/test_test_protocol.py
@@ -709,19 +709,20 @@ class TestTestProtocolClient(unittest.TestCase):
def test_add_failure(self):
"""Test addFailure on a TestProtocolClient."""
- self.protocol.addFailure(self.test, subunit.RemoteError("boo"))
+ self.protocol.addFailure(
+ self.test, subunit.RemoteError("boo qux"))
self.assertEqual(
self.io.getvalue(),
- 'failure: %s [\nRemoteException:\nboo\n]\n' % self.test.id())
+ 'failure: %s [\nRemoteException: boo qux\n]\n' % self.test.id())
def test_add_error(self):
"""Test stopTest on a TestProtocolClient."""
- self.protocol.addError(self.test, subunit.RemoteError("phwoar"))
+ self.protocol.addError(
+ self.test, subunit.RemoteError("phwoar crikey"))
self.assertEqual(
self.io.getvalue(),
'error: %s [\n'
- "RemoteException:\n"
- "phwoar\n"
+ "RemoteException: phwoar crikey\n"
"]\n" % self.test.id())