/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-20 22:42:34 UTC
  • mfrom: (6083.1.2 more-get-transport-from)
  • Revision ID: pqm@pqm.ubuntu.com-20110820224234-l0c0cmesdnfp2srq
(jelmer) Use get_transport_from_path and get_transport_from_url in more
 places. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2433
2433
 
2434
2434
        :param relpath: a path relative to the base url.
2435
2435
        """
2436
 
        t = _mod_transport.get_transport(self.get_readonly_url(relpath))
 
2436
        t = _mod_transport.get_transport_from_url(
 
2437
            self.get_readonly_url(relpath))
2437
2438
        self.assertTrue(t.is_readonly())
2438
2439
        return t
2439
2440
 
2573
2574
        propagating. This method ensures than a test did not leaked.
2574
2575
        """
2575
2576
        root = TestCaseWithMemoryTransport.TEST_ROOT
2576
 
        t = _mod_transport.get_transport(root)
 
2577
        t = _mod_transport.get_transport_from_path(root)
2577
2578
        self.permit_url(t.base)
2578
2579
        if (t.get_bytes('.bzr/checkout/dirstate') != 
2579
2580
                TestCaseWithMemoryTransport._SAFETY_NET_PRISTINE_DIRSTATE):
2824
2825
                "a list or a tuple. Got %r instead" % (shape,))
2825
2826
        # It's OK to just create them using forward slashes on windows.
2826
2827
        if transport is None or transport.is_readonly():
2827
 
            transport = _mod_transport.get_transport(".")
 
2828
            transport = _mod_transport.get_transport_from_path(".")
2828
2829
        for name in shape:
2829
2830
            self.assertIsInstance(name, basestring)
2830
2831
            if name[-1] == '/':