/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/test_btree_index.py

  • Committer: Vincent Ladeuil
  • Date: 2011-03-14 10:11:58 UTC
  • mfrom: (5609.24.1 2.3)
  • mto: (5609.24.2 2.3)
  • mto: This revision was merged to the branch mainline in revision 5723.
  • Revision ID: v.ladeuil+lp@free.fr-20110314101158-9ojis0ftsljg3c3t
Merge bzr/2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008, 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2008-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
796
796
    def test_eq_ne(self):
797
797
        # two indices are equal when constructed with the same parameters:
798
798
        t1 = transport.get_transport('trace+' + self.get_url(''))
799
 
        t2 = transport.get_transport(self.get_url(''))
 
799
        t2 = self.get_transport()
800
800
        self.assertTrue(
801
801
            btree_index.BTreeGraphIndex(t1, 'index', None) ==
802
802
            btree_index.BTreeGraphIndex(t1, 'index', None))
1151
1151
        for node in nodes:
1152
1152
            builder.add_node(*node)
1153
1153
        stream = builder.finish()
1154
 
        trans = transport.get_transport(self.get_url())
 
1154
        trans = self.get_transport()
1155
1155
        size = trans.put_file('index', stream)
1156
1156
        index = btree_index.BTreeGraphIndex(trans, 'index', size)
1157
1157
        self.assertEqual(500, index.key_count())