~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-04 18:51:39 UTC
  • mfrom: (2961.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20071104185139-kaio3sneodg2kp71
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