def checkDiscardMsg(processors, discardedMsg, reasonRegexp, *exclude):
    if (not exclude):
        exclude = []
    for p in filterNodeSet(processors, exclude):
        last = p.spylog.getLastParams(p.discard, required=False)
        assert last
        assert (last['msg'] == discardedMsg)
        assert (reasonRegexp in last['reason'])
def checkDiscardMsg(processors, discardedMsg, reasonRegexp, *exclude):
    if (not exclude):
        exclude = []
    for p in filterNodeSet(processors, exclude):
        last = p.spylog.getLastParams(p.discard, required=False)
        assert last
        assert (last['msg'] == discardedMsg)
        assert (reasonRegexp in last['reason'])