~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

  • Committer: Vincent Ladeuil
  • Date: 2009-04-29 06:45:12 UTC
  • mfrom: (4304.2.1 367726-ssh-default-user)
  • mto: This revision was merged to the branch mainline in revision 4311.
  • Revision ID: v.ladeuil+lp@free.fr-20090429064512-5wa7iv1vdjmoit64
Respect ~/.ssh/config usernames for bzr+ssh connections

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
import bz2
27
27
from cStringIO import StringIO
28
 
import getpass
29
28
 
30
29
from bzrlib import (
31
30
    bzrdir,
1560
1559
 
1561
1560
class TestRemoteSSHTransportAuthentication(tests.TestCaseInTempDir):
1562
1561
 
1563
 
    def test_defaults_to_getuser(self):
 
1562
    def test_defaults_to_none(self):
1564
1563
        t = RemoteSSHTransport('bzr+ssh://example.com')
1565
 
        self.assertIs(getpass.getuser(), t._get_credentials()[0])
 
1564
        self.assertIs(None, t._get_credentials()[0])
1566
1565
 
1567
1566
    def test_uses_authentication_config(self):
1568
1567
        conf = config.AuthenticationConfig()