示例#1
0
    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)
示例#2
0
    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)
示例#3
0
 def parameters(sandbox):
     error = WalkError.permission_denied(os.path.join(sandbox.data_path, '4'))
     return (sandbox.data_path, error, error)
示例#4
0
 def parameters(s):
     error = WalkError.permission_denied(os.path.join(s.data_path, 'a.lnk'))
     return (s.data_path, error, error)
示例#5
0
 def parameters(sandbox):
     error = WalkError.permission_denied(
         os.path.join(sandbox.data_path, '4'))
     return (sandbox.data_path, error, error)
示例#6
0
 def parameters(s):
     error = WalkError.permission_denied(
         os.path.join(s.data_path, 'a.lnk'))
     return (s.data_path, error, error)