~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_index.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
        for key, value, references in nodes:
390
390
            builder.add_node(key, value, references)
391
391
        stream = builder.finish()
392
 
        trans = transport.get_transport('trace+' + self.get_url())
 
392
        trans = transport.get_transport_from_url('trace+' + self.get_url())
393
393
        size = trans.put_file('index', stream)
394
394
        return index.GraphIndex(trans, 'index', size)
395
395
 
1056
1056
    def test_supports_unlimited_cache(self):
1057
1057
        builder = index.GraphIndexBuilder(0, key_elements=1)
1058
1058
        stream = builder.finish()
1059
 
        trans = transport.get_transport(self.get_url())
 
1059
        trans = self.get_transport()
1060
1060
        size = trans.put_file('index', stream)
1061
1061
        # It doesn't matter what unlimited_cache does here, just that it can be
1062
1062
        # passed