~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/stub_sftp.py

  • Committer: abentley
  • Date: 2006-04-20 23:47:53 UTC
  • mfrom: (1681 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1683.
  • Revision ID: abentley@lappy-20060420234753-6a6874b76f09f86d
Merge bzr.dev

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