def test_enoent(self): cwd = os.path.abspath('.') cluster = { 'a', './a', './x/a', '/b', '/x/b', '../b', os.path.join(cwd, 'a') } enoent = './not-existing' expected = WalkError.no_such_file([enoent]) self._run_test(cluster, expected, enoent)
def parameters(sandbox): error = WalkError.permission_denied(os.path.join(sandbox.data_path, '4')) return (sandbox.data_path, error, error)
def parameters(s): error = WalkError.permission_denied(os.path.join(s.data_path, 'a.lnk')) return (s.data_path, error, error)
def parameters(sandbox): error = WalkError.permission_denied( os.path.join(sandbox.data_path, '4')) return (sandbox.data_path, error, error)
def parameters(s): error = WalkError.permission_denied( os.path.join(s.data_path, 'a.lnk')) return (s.data_path, error, error)