示例#1
0
 def test_relative_basedir_relative_subpath(self):
     assert safe_path_join('./', './app/static') == '././app/static'
示例#2
0
 def test_relative_basedir_root_subdir_subpath(self):
     with pytest.raises(ValueError):
         safe_path_join('./', '/../../app/static')
示例#3
0
 def test_simple_subpath(self):
     assert safe_path_join('', 'app/static') == 'app/static'