720
723
# The entire index should have been read
721
724
total_pages = sum(index._row_lengths)
722
725
self.assertEqual(total_pages, index._row_offsets[-1])
724
727
# The start of the leaves
725
728
first_byte = index._row_offsets[-2] * btree_index._PAGE_SIZE
727
730
for offset in range(first_byte, size, 4096):
728
731
readv_request.append((offset, 4096))
730
734
expected = [('readv', 'index', [(0, 4096)], False, None),
731
735
('readv', 'index', readv_request, False, None)]
732
736
if expected != transport._activity: