def checkPrePrepareReqSent(replica: TestReplica, req: Request):
    prePreparesSent = getAllArgs(replica._ordering_service, replica._ordering_service.send_pre_prepare)
    assert ((req.digest,) in [p['ppReq'].reqIdr for p in prePreparesSent])
def checkPrePrepareReqSent(replica: TestReplica, req: Request):
    prePreparesSent = getAllArgs(replica._ordering_service, replica._ordering_service.send_pre_prepare)
    assert ((req.digest,) in [p['ppReq'].reqIdr for p in prePreparesSent])