summaryrefslogtreecommitdiff
path: root/python/subunit/tests
diff options
context:
space:
mode:
authorJonathan Lange <jml@mumak.net>2007-01-14 16:56:23 +1100
committerJonathan Lange <jml@mumak.net>2007-01-14 16:56:23 +1100
commit456a72762dba322282be49fbb7c6ef522cacb369 (patch)
tree9f041f4b1deb58fb31af6be48fcbf9806d9294df /python/subunit/tests
parent46661c83dee2138c9918798f36d8b40edab5ffad (diff)
downloadsubunit-git-456a72762dba322282be49fbb7c6ef522cacb369.tar.gz
Add sibpath
Diffstat (limited to 'python/subunit/tests')
-rw-r--r--python/subunit/tests/test_test_protocol.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py
index 2530f25..e6d6f0d 100644
--- a/python/subunit/tests/test_test_protocol.py
+++ b/python/subunit/tests/test_test_protocol.py
@@ -19,6 +19,7 @@
import unittest
from StringIO import StringIO
+import os
import subunit
import sys
@@ -593,6 +594,11 @@ class TestExecTestCase(unittest.TestCase):
def test_count_test_cases(self):
"""TODO run the child process and count responses to determine the count."""
+ def test_sibpath(self):
+ sibling = subunit.sibpath(__file__, 'foo')
+ expected = '%s/foo' % (os.path.split(__file__)[0],)
+ self.assertEqual(sibling, expected)
+
class DoExecTestCase(subunit.ExecTestCase):