def test_relative_basedir_relative_subpath(self): assert safe_path_join('./', './app/static') == '././app/static'
def test_relative_basedir_root_subdir_subpath(self): with pytest.raises(ValueError): safe_path_join('./', '/../../app/static')
def test_simple_subpath(self): assert safe_path_join('', 'app/static') == 'app/static'