~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-29 07:14:39 UTC
  • mfrom: (4310.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090429071439-f7089qmxwc51k9rx
(vila) Respect ~/.ssh/config usernames for bzr+ssh connections
        (#367726)

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()