~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

  • Committer: Jelmer Vernooij
  • Date: 2011-08-08 17:52:59 UTC
  • mto: (5268.7.8 transport-segments)
  • mto: This revision was merged to the branch mainline in revision 6062.
  • Revision ID: jelmer@samba.org-20110808175259-putdqc0lnztp367v
Add UnparsedUrl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1356
1356
    def test_registration(self):
1357
1357
        t = transport.get_transport('bzr+ssh://example.com/path')
1358
1358
        self.assertIsInstance(t, remote.RemoteSSHTransport)
1359
 
        self.assertEqual('example.com', t._host)
 
1359
        self.assertEqual('example.com', t._parsed_url.host)
1360
1360
 
1361
1361
    def test_bzr_https(self):
1362
1362
        # https://bugs.launchpad.net/bzr/+bug/128456
3581
3581
        r = t._redirected_to('http://www.example.com/foo',
3582
3582
                             'http://www.example.com/bar')
3583
3583
        self.assertEquals(type(r), type(t))
3584
 
        self.assertEquals('joe', t._user)
3585
 
        self.assertEquals(t._user, r._user)
 
3584
        self.assertEquals('joe', t._parsed_url.user)
 
3585
        self.assertEquals(t._parsed_url.user, r._parsed_url.user)
3586
3586
 
3587
3587
    def test_redirected_to_same_host_different_protocol(self):
3588
3588
        t = remote.RemoteHTTPTransport('bzr+http://joe@www.example.com/foo')