mirror of https://github.com/tLDP/python-tldp
preserve the (relative) full path, silly!
This commit is contained in:
parent
7d46e59efa
commit
832daee384
|
@ -144,7 +144,7 @@ class TestSourceDocument(TestToolsFilesystem):
|
||||||
def test_init(self):
|
def test_init(self):
|
||||||
for ex in example.sources:
|
for ex in example.sources:
|
||||||
fullpath = ex.filename
|
fullpath = ex.filename
|
||||||
fn = os.path.basename(fullpath)
|
fn = os.path.relpath(fullpath, start=example.sampledocs)
|
||||||
doc = SourceDocument(fullpath)
|
doc = SourceDocument(fullpath)
|
||||||
self.assertIsInstance(doc, SourceDocument)
|
self.assertIsInstance(doc, SourceDocument)
|
||||||
self.assertTrue(fn in str(doc))
|
self.assertTrue(fn in str(doc))
|
||||||
|
|
Loading…
Reference in New Issue