getDirname strips the leading / chars

This commit is contained in:
shortcutme 2017-10-04 13:33:00 +02:00
parent b1bfe39cd5
commit f0f9240fc8
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class TestHelper:
assert helper.getDirname("") == ""
assert helper.getDirname("content.json") == ""
assert helper.getDirname("data/users/") == "data/users/"
assert helper.getDirname("/data/users/content.json") == "/data/users/"
assert helper.getDirname("/data/users/content.json") == "data/users/"
def testGetFilename(self):