Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
u"./images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"../images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"..\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/subfolder/../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"/images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"C:\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa
def test_normalize_path(self):
assert helpers.normalize_path(
u"images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"../images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"..\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/subfolder/../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
def test_normalize_path(self):
assert helpers.normalize_path(
u"images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"../images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"..\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/subfolder/../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"/images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"C:\\images\\texture.png") == "images/texture.png"
def test_normalize_path(self):
assert helpers.normalize_path(
u"images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"../images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"..\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/subfolder/../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"/images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"C:\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa
def test_normalize_path(self):
assert helpers.normalize_path(
u"images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"../images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"..\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/subfolder/../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"/images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"../images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"..\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/subfolder/../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"/images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"C:\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa
def test_normalize_path(self):
assert helpers.normalize_path(
u"images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"../images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"..\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/subfolder/../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"/images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"C:\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa
def test_normalize_path(self):
assert helpers.normalize_path(
u"images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"../images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"..\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/subfolder/../texture.png") == "images/texture.png"
assert helpers.normalize_path(
assert helpers.normalize_path(
u"../images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"..\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/subfolder/../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"/images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"C:\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa
u".\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u".\\images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"../images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"..\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/subfolder/../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/sub1\\sub2/../../texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"./images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"/images/texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"C:\\images\\texture.png") == "images/texture.png"
assert helpers.normalize_path(
u"somE_valid-caractères of files.png") == "some_valid-caracteres of files.png" # noqa