~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_btree_index.py

Merge pt1 hooks branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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())