def testCompareRecordField(self, refdata, rundata, bVisual=False): # same page !! if refdata[1] != rundata[1]: return False, 0 if rundata[2] == []: return False, 0 if refdata[2] == []: return False, 0 runall = " ".join(rundata[2]).strip().lower() refall = " ".join(refdata[2]).strip().lower() return matchLCS(0, (refall, len(refall)), (runall, len(runall))) return res, val
def testCompareRecordFirstNameLastName(self, refdata, rundata, bVisual=False): if refdata[1] != rundata[1]: return False refall = refdata[2].lower() + refdata[3].lower() reflen = len(refdata[2]) + len(refdata[3]) runall = rundata[2].lower() + rundata[3].lower() runlen = len(rundata[2]) + len(rundata[3]) runall.replace('n̄', 'nn') runall.replace('m̄', 'mm') return matchLCS(0, (refall, reflen), (runall, runlen))