From 456a72762dba322282be49fbb7c6ef522cacb369 Mon Sep 17 00:00:00 2001 From: Jonathan Lange Date: Sun, 14 Jan 2007 16:56:23 +1100 Subject: Add sibpath --- python/subunit/tests/test_test_protocol.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/subunit/tests/test_test_protocol.py') 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): -- cgit v1.2.1