diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-10-08 23:23:07 +1100 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-10-08 23:23:07 +1100 |
| commit | 1af90d7941a17338fc9a296ec5dce7ab79ade550 (patch) | |
| tree | 905865b9a4c02c72df7d7c71d45889444adc73ba /python/subunit/tests/test_test_protocol.py | |
| parent | 446d6f69537d2fb2bff212e3f8ebc3f36b525740 (diff) | |
| download | subunit-git-1af90d7941a17338fc9a296ec5dce7ab79ade550.tar.gz | |
Wire up addSkip to details.
Diffstat (limited to 'python/subunit/tests/test_test_protocol.py')
| -rw-r--r-- | python/subunit/tests/test_test_protocol.py | 14 |
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) |
