~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

  • Committer: Carl Friedrich Bolz
  • Date: 2006-08-18 15:18:44 UTC
  • mto: (1711.2.131 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1947.
  • Revision ID: cfbolz@gmx.de-20060818151844-4f780772ff8372f1
Rename setup method to make its intent clearer. Some PEP 8 issues.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    paramiko_loaded = False
34
34
 
35
35
 
36
 
def set_transport(testcase):
 
36
def set_test_transport_to_sftp(testcase):
37
37
    """A helper to set transports on test case instances."""
38
38
    from bzrlib.transport.sftp import SFTPAbsoluteServer, SFTPHomeDirServer
39
39
    if getattr(testcase, '_get_remote_is_absolute', None) is None:
52
52
        super(TestCaseWithSFTPServer, self).setUp()
53
53
        if not paramiko_loaded:
54
54
            raise TestSkipped('you must have paramiko to run this test')
55
 
        set_transport(self) 
 
55
        set_test_transport_to_sftp(self) 
56
56
 
57
57
    def get_transport(self, path=None):
58
58
        """Return a transport relative to self._test_root."""