~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_sftp_transport.py

  • Committer: Aaron Bentley
  • Date: 2008-10-15 18:59:07 UTC
  • mto: (3777.1.9 launchpad-login)
  • mto: This revision was merged to the branch mainline in revision 3778.
  • Revision ID: aaron@aaronbentley.com-20081015185907-lw5srt2ah0huccvt
bzr+ssh and sftp both use ssh scheme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
487
487
 
488
488
 
489
489
class TestUsesAuthConfig(TestCaseWithSFTPServer):
490
 
    """Test some stuff when accessing a bzr Branch over sftp"""
 
490
    """Test that AuthenticationConfig can supply default usernames."""
491
491
 
492
492
    def get_transport_for_connection(self, set_config):
493
493
        port = self.get_server()._listener.port
494
494
        if set_config:
495
495
            conf = config.AuthenticationConfig()
496
496
            conf._get_config().update(
497
 
                {'sftptest': {'scheme': 'sftp', 'port': port, 'user': 'bar'}})
 
497
                {'sftptest': {'scheme': 'ssh', 'port': port, 'user': 'bar'}})
498
498
            conf._save()
499
499
        t = get_transport('sftp://localhost:%d' % port)
500
500
        # force a connection to be performed.