Ejemplo n.º 1
0
def test_normpath_many_double_dots_no_root():
	assert file.normpath('A/../../../../../B/') == 'B/'
Ejemplo n.º 2
0
def test_normpath_all_fixes():
	assert file.normpath('/A/./B//C/../../D') == '/A/D'
Ejemplo n.º 3
0
def test_normpath_single_dots():
	assert file.normpath('/A/./B/') == '/A/B/'
Ejemplo n.º 4
0
def test_normpath_many_double_dots():
	assert file.normpath('/A/../../../../../B/') == '/B/'
Ejemplo n.º 5
0
def test_normpath_empty_path():
	assert file.normpath('/A//B') == '/A/B'
Ejemplo n.º 6
0
def test_normpath_neither_slash():
	assert file.normpath('A/B/C') == 'A/B/C'
Ejemplo n.º 7
0
def test_normpath_no_trailing_slash():
	assert file.normpath('/A/B/C') == '/A/B/C'
Ejemplo n.º 8
0
def test_normpath_no_leading_slash():
	assert file.normpath('A/B/C/') == 'A/B/C/'
Ejemplo n.º 9
0
def test_normpath():
	assert file.normpath('/A/B/C/') == '/A/B/C/'