~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/stub_sftp.py

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

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
 
25
26
from bzrlib.osutils import pathjoin
26
27
from bzrlib.trace import mutter
27
28
 
28
29
 
29
30
class StubServer (ServerInterface):
 
31
 
30
32
    def __init__(self, test_case):
31
33
        ServerInterface.__init__(self)
32
34
        self._test_case = test_case
59
61
 
60
62
 
61
63
class StubSFTPServer (SFTPServerInterface):
 
64
 
62
65
    def __init__(self, server, root, home=None):
63
66
        SFTPServerInterface.__init__(self, server)
64
67
        self.root = root