~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-07-16 09:26:03 UTC
  • mfrom: (5346.1.7 deprecations)
  • Revision ID: pqm@pqm.ubuntu.com-20100716092603-gi09i1u5bp2gb68i
(vila) Delete deprecated code. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    ui,
45
45
    urlutils,
46
46
    )
47
 
from bzrlib.symbol_versioning import (
48
 
    deprecated_in,
49
 
    )
50
47
from bzrlib.tests import (
51
48
    features,
52
49
    http_server,
1339
1336
        t = self._transport(self.new_server.get_url())
1340
1337
        self.assertEqual('0123456789', t.get('a').read())
1341
1338
 
1342
 
    def test_read_redirected_bundle_from_url(self):
1343
 
        from bzrlib.bundle import read_bundle_from_url
1344
 
        url = self.old_transport.abspath('bundle')
1345
 
        bundle = self.applyDeprecated(deprecated_in((1, 12, 0)),
1346
 
                read_bundle_from_url, url)
1347
 
        # If read_bundle_from_url was successful we get an empty bundle
1348
 
        self.assertEqual([], bundle.revisions)
1349
 
 
1350
1339
 
1351
1340
class RedirectedRequest(_urllib2_wrappers.Request):
1352
1341
    """Request following redirections. """