コード例 #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'