preserve the (relative) full path, silly!

This commit is contained in:
Martin A. Brown 2016-04-01 21:10:12 -07:00
parent 7d46e59efa
commit 832daee384
1 changed files with 1 additions and 1 deletions

View File

@ -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))