~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_permissions.py

Merge pt1 hooks branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    :param dir_mode: The mode for all directories
64
64
    :param include_base: If false, only check the subdirectories
65
65
    """
66
 
    t = transport.get_transport(".")
 
66
    t = test.get_transport()
67
67
    if include_base:
68
68
        test.assertTransportMode(t, base, dir_mode)
69
69
    for root, dirs, files in os.walk(base):
178
178
 
179
179
        # bodge around for stubsftpserver not letting use connect
180
180
        # more than once
181
 
        _t = transport.get_transport(self.get_url())
 
181
        _t = self.get_transport()
182
182
 
183
183
        os.mkdir('local')
184
184
        t_local = self.make_branch_and_tree('local')
255
255
        original_umask = os.umask(umask)
256
256
 
257
257
        try:
258
 
            t = transport.get_transport(self.get_url())
 
258
            t = self.get_transport()
259
259
            # Direct access should be masked by umask
260
260
            t._sftp_open_exclusive('a', mode=0666).write('foo\n')
261
261
            self.assertTransportMode(t, 'a', 0666 &~umask)