~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Vincent Ladeuil
  • Date: 2007-06-01 10:02:05 UTC
  • mto: (2485.8.44 bzr.connection.sharing)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070601100205-i8hq7x0zm8k79g90
Finish http refactoring. Test suite passing.

* bzrlib/transport/http/_pycurl.py: 
Replaces _real_abspath by _unqualified_abspath.

* bzrlib/transport/http/_urllib.py:
Replaces _real_abspath by _unqualified_abspath.

* bzrlib/transport/http/__init__.py:
(HttpTransportBase.abspath): Deleted.
(HttpTransportBase._unqualified_abspath): Kind of _remote_path for
hhtp, replaces _real_abspath.

* bzrlib/tests/test_http.py:
(TestHttpTransportUrls.test_invalid_http_urls): Delete the test
for directories, we are not listable anyway.

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
    def test_invalid_http_urls(self):
202
202
        """Trap invalid construction of urls"""
203
203
        t = self._transport('http://bazaar-vcs.org/bzr/bzr.dev/')
204
 
        self.assertRaises(ValueError, t.abspath, '.bzr/')
205
 
        t = self._transport('http://http://bazaar-vcs.org/bzr/bzr.dev/')
206
204
        self.assertRaises((errors.InvalidURL, errors.ConnectionError),
207
 
                          t.has, 'foo/bar')
 
205
                          self._transport,
 
206
                          'http://http://bazaar-vcs.org/bzr/bzr.dev/')
208
207
 
209
208
    def test_http_root_urls(self):
210
209
        """Construction of URLs from server root"""