def METHOD_NAME(self):
    eq = self.assertEqual
    oid = self._storage.new_oid()
    def helper(tid, revid, x):
        data = zodb_pickle(MinPO(x))
        t = TransactionMetaData()
        try:
            self._storage.tpc_begin(t, p64(tid))
            self._storage.store(oid, revid, data, '', t)
            # Finish the transaction
            self._storage.tpc_vote(t)
            newrevid = self._storage.tpc_finish(t)
        except:  # noqa: E722 do not use bare 'except'
            self._storage.tpc_abort(t)
            raise
        return newrevid
    revid1 = helper(1, None, 1)
    revid2 = helper(2, revid1, 2)
    helper(3, revid2, 3)
    data, start_tid, end_tid = self._storage.loadBefore(oid, p64(2))
    eq(zodb_unpickle(data), MinPO(1))
    eq(u64(start_tid), 1)
    eq(u64(end_tid), 2)