~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Vincent Ladeuil
  • Date: 2007-11-04 17:59:03 UTC
  • mfrom: (2900.2.26 auth.ring)
  • mto: This revision was merged to the branch mainline in revision 2962.
  • Revision ID: v.ladeuil+lp@free.fr-20071104175903-shj4jdc44zpg3duq
 Authentication ring implementation (read-only)

Show diffs side-by-side

added added

removed removed

Lines of Context:
663
663
        self.assertEquals(t.relpath('sftp://host.com/dev/%path/sub'), 'sub')
664
664
 
665
665
    def test_connection_sharing_propagate_credentials(self):
666
 
        t = ConnectedTransport('foo://user@host.com/abs/path')
 
666
        t = ConnectedTransport('ftp://user@host.com/abs/path')
 
667
        self.assertEquals('user', t._user)
 
668
        self.assertEquals('host.com', t._host)
667
669
        self.assertIs(None, t._get_connection())
668
670
        self.assertIs(None, t._password)
669
671
        c = t.clone('subdir')
670
 
        self.assertEquals(None, c._get_connection())
 
672
        self.assertIs(None, c._get_connection())
671
673
        self.assertIs(None, t._password)
672
674
 
673
675
        # Simulate the user entering a password