~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_permissions.py

  • Committer: Robert Collins
  • Date: 2007-07-04 08:08:13 UTC
  • mfrom: (2572 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2587.
  • Revision ID: robertc@robertcollins.net-20070704080813-wzebx0r88fvwj5rq
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 by Canonical Ltd
 
1
# Copyright (C) 2005 Canonical Ltd
2
2
# -*- coding: utf-8 -*-
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
35
35
from bzrlib.branch import Branch
36
36
from bzrlib.bzrdir import BzrDir
37
37
from bzrlib.lockable_files import LockableFiles
 
38
from bzrlib.remote import RemoteBranchFormat
38
39
from bzrlib.tests import TestCaseWithTransport, TestSkipped
39
40
from bzrlib.tests.test_permissions import chmod_r, check_mode_r
40
41
from bzrlib.tests.test_sftp_transport import TestCaseWithSFTPServer
45
46
class TestPermissions(TestCaseWithTransport):
46
47
 
47
48
    def test_new_branch(self):
 
49
        if isinstance(self.branch_format, RemoteBranchFormat):
 
50
            # Remote branch format have no permission logic in them; there's
 
51
            # nothing to test here.
 
52
            return
48
53
        if sys.platform == 'win32':
49
54
            raise TestSkipped('chmod has no effect on win32')
50
55
        # also, these are BzrBranch format specific things..