summaryrefslogtreecommitdiff
path: root/python/subunit/tests/test_test_protocol.py
diff options
context:
space:
mode:
authorJonathan Lange <jml@mumak.net>2007-01-14 17:02:10 +1100
committerJonathan Lange <jml@mumak.net>2007-01-14 17:02:10 +1100
commit501ba57871b35bab0bce1da4b72f7990a4f9dc14 (patch)
tree1c432029b34f03bfad5e9bd0feedca532c13b667 /python/subunit/tests/test_test_protocol.py
parent456a72762dba322282be49fbb7c6ef522cacb369 (diff)
downloadsubunit-git-501ba57871b35bab0bce1da4b72f7990a4f9dc14.tar.gz
Make ExecTestCase test docstring/paths relative to the module they are
defined in.
Diffstat (limited to 'python/subunit/tests/test_test_protocol.py')
-rw-r--r--python/subunit/tests/test_test_protocol.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py
index e6d6f0d..4cd693d 100644
--- a/python/subunit/tests/test_test_protocol.py
+++ b/python/subunit/tests/test_test_protocol.py
@@ -562,14 +562,15 @@ class TestExecTestCase(unittest.TestCase):
class SampleExecTestCase(subunit.ExecTestCase):
def test_sample_method(self):
- """./python/subunit/tests/sample-script.py"""
+ """sample-script.py"""
# the sample script runs three tests, one each
# that fails, errors and succeeds
def test_construct(self):
test = self.SampleExecTestCase("test_sample_method")
- self.assertEqual(test.script, "./python/subunit/tests/sample-script.py")
+ self.assertEqual(test.script,
+ subunit.sibpath(__file__, 'sample-script.py'))
def test_run(self):
runner = MockTestProtocolServerClient()
@@ -603,7 +604,7 @@ class TestExecTestCase(unittest.TestCase):
class DoExecTestCase(subunit.ExecTestCase):
def test_working_script(self):
- """./python/subunit/tests/sample-two-script.py"""
+ """sample-two-script.py"""
class TestIsolatedTestCase(unittest.TestCase):