summaryrefslogtreecommitdiff
path: root/python/subunit/tests
diff options
context:
space:
mode:
authorRobert Collins <robertc@robertcollins.net>2009-10-08 23:23:07 +1100
committerRobert Collins <robertc@robertcollins.net>2009-10-08 23:23:07 +1100
commit1af90d7941a17338fc9a296ec5dce7ab79ade550 (patch)
tree905865b9a4c02c72df7d7c71d45889444adc73ba /python/subunit/tests
parent446d6f69537d2fb2bff212e3f8ebc3f36b525740 (diff)
downloadsubunit-git-1af90d7941a17338fc9a296ec5dce7ab79ade550.tar.gz
Wire up addSkip to details.
Diffstat (limited to 'python/subunit/tests')
-rw-r--r--python/subunit/tests/test_test_protocol.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py
index 1700de6..4434710 100644
--- a/python/subunit/tests/test_test_protocol.py
+++ b/python/subunit/tests/test_test_protocol.py
@@ -1140,6 +1140,20 @@ class TestTestProtocolClient(unittest.TestCase):
self.assertEqual(
self.io.getvalue(),
'skip: %s [\nHas it really?\n]\n' % self.test.id())
+
+ def test_add_skip_details(self):
+ """Test addSkip on a TestProtocolClient with details."""
+ details = {'reason':Content(
+ ContentType('text', 'plain'), lambda:['Has it really?'])}
+ self.protocol.addSkip(
+ self.test, details=details)
+ self.assertEqual(
+ self.io.getvalue(),
+ "skip: %s [ multipart\n"
+ "Content-Type: text/plain\n"
+ "reason\n"
+ "14\nHas it really?0\n"
+ "]\n" % self.test.id())
def test_progress_set(self):
self.protocol.progress(23, subunit.PROGRESS_SET)