~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_btree_index.py

  • Committer: Martin Packman
  • Date: 2012-02-27 15:49:07 UTC
  • mfrom: (6015.44.12 2.4)
  • mto: (6437.23.18 2.5)
  • mto: This revision was merged to the branch mainline in revision 6478.
  • Revision ID: martin.packman@canonical.com-20120227154907-bmnhas21g8hbfeyb
Merge 2.4 into 2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
899
899
        for offset in range(first_byte, size, page_size):
900
900
            readv_request.append((offset, page_size))
901
901
        # The last page is truncated
902
 
        readv_request[-1] = (readv_request[-1][0], 1303220 % page_size)
 
902
        readv_request[-1] = (readv_request[-1][0], size % page_size)
903
903
        expected = [('readv', 'index', [(0, page_size)], False, None),
904
904
             ('readv',  'index', readv_request, False, None)]
905
905
        if expected != t._activity:
906
906
            self.assertEqualDiff(pprint.pformat(expected),
907
 
                                 pprint.pformat(transport._activity))
 
907
                                 pprint.pformat(t._activity))
908
908
 
909
909
    def _test_iter_entries_references_resolved(self):
910
910
        index = self.make_index(1, nodes=[