mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fixes #630
This commit is contained in:
parent
cb5f66ffe0
commit
385a18563c
2 changed files with 7 additions and 2 deletions
|
|
@ -74,7 +74,11 @@ class TestUtils(LoggedTestCase):
|
|||
samples = ((os.path.join('test', 'test.html'), os.pardir),
|
||||
(os.path.join('test', 'test', 'test.html'),
|
||||
os.path.join(os.pardir, os.pardir)),
|
||||
('test.html', os.curdir))
|
||||
('test.html', os.curdir),
|
||||
(os.path.join('/test', 'test.html'), os.pardir),
|
||||
(os.path.join('/test', 'test', 'test.html'),
|
||||
os.path.join(os.pardir, os.pardir)),
|
||||
('/test.html', os.curdir),)
|
||||
|
||||
for value, expected in samples:
|
||||
self.assertEquals(utils.get_relative_path(value), expected)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue