~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/stub_sftp.py

Merge in InterRepository api to have it available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import os
23
23
from paramiko import ServerInterface, SFTPServerInterface, SFTPServer, SFTPAttributes, \
24
24
    SFTPHandle, SFTP_OK, AUTH_SUCCESSFUL, OPEN_SUCCEEDED
25
 
 
26
25
from bzrlib.osutils import pathjoin
27
26
from bzrlib.trace import mutter
28
27
 
29
28
 
30
29
class StubServer (ServerInterface):
31
 
 
32
30
    def __init__(self, test_case):
33
31
        ServerInterface.__init__(self)
34
32
        self._test_case = test_case
61
59
 
62
60
 
63
61
class StubSFTPServer (SFTPServerInterface):
64
 
 
65
62
    def __init__(self, server, root, home=None):
66
63
        SFTPServerInterface.__init__(self, server)
67
64
        self.root = root