~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: 2008-06-05 04:05:05 UTC
  • mfrom: (3473.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080605040505-i9kqxg2fps2qjdi0
Add the 'alias' command (Tim Penhey)

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
        self.check([(0, 20, [(0, 10), (10, 10)])],
181
181
                   [(0, 10), (10, 10)])
182
182
 
 
183
    # XXX: scary, http.readv() can't handle that --vila20071209
183
184
    def test_coalesce_overlapped(self):
184
 
        self.assertRaises(ValueError,
185
 
            self.check, [(0, 15, [(0, 10), (5, 10)])],
186
 
                        [(0, 10), (5, 10)])
 
185
        self.check([(0, 15, [(0, 10), (5, 10)])],
 
186
                   [(0, 10), (5, 10)])
187
187
 
188
188
    def test_coalesce_limit(self):
189
189
        self.check([(10, 50, [(0, 10), (10, 10), (20, 10),
641
641
 
642
642
        self.assertEquals(t.base, 'http://simple.example.com/home/source/')
643
643
 
644
 
    def test_parse_url_with_at_in_user(self):
645
 
        # Bug 228058
646
 
        t = ConnectedTransport('ftp://user@host.com@www.host.com/')
647
 
        self.assertEquals(t._user, 'user@host.com')
648
 
 
649
644
    def test_parse_quoted_url(self):
650
645
        t = ConnectedTransport('http://ro%62ey:h%40t@ex%41mple.com:2222/path')
651
646
        self.assertEquals(t._host, 'exAmple.com')