~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

(mbp) merge bzr.dev to 0.8, prepare for release

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
 
93
93
        os.mkdir('b')
94
94
        os.chmod('b', 02777)
95
 
        b = BzrDir.create('b').create_branch()
 
95
        b = self.make_branch('b')
96
96
        self.assertEqualMode(02777, b.control_files._dir_mode)
97
97
        self.assertEqualMode(00666, b.control_files._file_mode)
98
98
        check_mode_r(self, b.control_files._transport.base, 00666, 02777)
99
99
 
100
100
        os.mkdir('c')
101
101
        os.chmod('c', 02750)
102
 
        b = BzrDir.create('c').create_branch()
 
102
        b = self.make_branch('c')
103
103
        self.assertEqualMode(02750, b.control_files._dir_mode)
104
104
        self.assertEqualMode(00640, b.control_files._file_mode)
105
105
        check_mode_r(self, b.control_files._transport.base, 00640, 02750)
106
106
 
107
107
        os.mkdir('d')
108
108
        os.chmod('d', 0700)
109
 
        b = BzrDir.create('d').create_branch()
 
109
        b = self.make_branch('d')
110
110
        self.assertEqualMode(0700, b.control_files._dir_mode)
111
111
        self.assertEqualMode(0600, b.control_files._file_mode)
112
112
        check_mode_r(self, b.control_files._transport.base, 00600, 00700)