From 832daee38445696603571b68fd38f90e8bf0cf72 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Fri, 1 Apr 2016 21:10:12 -0700 Subject: [PATCH] preserve the (relative) full path, silly! --- tests/test_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_sources.py b/tests/test_sources.py index 6870a4f..5fcd0b6 100644 --- a/tests/test_sources.py +++ b/tests/test_sources.py @@ -144,7 +144,7 @@ class TestSourceDocument(TestToolsFilesystem): def test_init(self): for ex in example.sources: fullpath = ex.filename - fn = os.path.basename(fullpath) + fn = os.path.relpath(fullpath, start=example.sampledocs) doc = SourceDocument(fullpath) self.assertIsInstance(doc, SourceDocument) self.assertTrue(fn in str(doc))