def checkMessageReceived(msg, receiver, method: str=None):
    allMsgs = getAllMsgReceivedForNode(receiver, method)
    assert (msg in allMsgs)
def checkMessageReceived(msg, receiver, method: str=None):
    allMsgs = getAllMsgReceivedForNode(receiver, method)
    assert (msg in allMsgs)