~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2007-04-28 15:04:17 UTC
  • mfrom: (2466 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2566.
  • Revision ID: john@arbash-meinel.com-20070428150417-trp3pi0pzd411pu4
[merge] bzr.dev 2466

Show diffs side-by-side

added added

removed removed

Lines of Context:
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..