~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-19 05:27:04 UTC
  • mfrom: (5158.3.2 test_selftest_no_paramiko)
  • Revision ID: pqm@pqm.ubuntu.com-20100419052704-s2a31e5qdj5spbx9
(lifeless) Fix running selftest when paramiko is not installed. (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    )
23
23
from bzrlib.tests import (
24
24
    features,
25
 
    stub_sftp,
26
25
    )
27
26
from bzrlib.transport import memory
28
27
 
75
74
        # Test that we can pass a transport to the selftest core - sftp
76
75
        # version.
77
76
        self.requireFeature(features.paramiko)
 
77
        from bzrlib.tests import stub_sftp
78
78
        params = self.get_params_passed_to_core('selftest --transport=sftp')
79
79
        self.assertEqual(stub_sftp.SFTPAbsoluteServer,
80
80
            params[1]["transport"])