def testMobilePhone(self): list = reg.getMobilePhone(self.str_text16) print(list) self.assertIn("18515061589", list)
resume_dict['gender'] = firstInStrList(RegUtils.getGender(text)) resume_dict['volk'] = firstInStrList(RegUtils.getVolk(text)) resume_dict['birthday'] = firstInStrList(RegUtils.getBirthday(text)) resume_dict['id_nbr'] = firstInStrList(RegUtils.getIdNbr(text)) resume_dict['edu'] = firstInStrList(RegUtils.getEducations(text)) resume_dict['degree'] = firstInStrList(RegUtils.getDegrees(text)) resume_dict['politics'] = firstInStrList(RegUtils.getPolitics(text)) resume_dict['marriage'] = firstInStrList(RegUtils.getMarriage(text)) resume_dict['register_household'] = firstInStrList( RegUtils.getRegisterHouseHold(text)) resume_dict['native_household'] = firstInStrList( RegUtils.getNativeHouseHold(text)) resume_dict['job_start_date'] = firstInStrList( RegUtils.getFirstDateInJob(text)) resume_dict['link_address'] = firstInStrList(RegUtils.getLinkAddress(text)) resume_dict['mobile_phone'] = firstInStrList(RegUtils.getMobilePhone(text)) # 教育经历 edu_history_list = [] lines_edu_history = get_resume_edu_history(lines) for line in lines_edu_history: edu_history_list.append(RegUtils.analyToEduHistory(line)) resume_dict['edu_history'] = cleanNoneInList(edu_history_list) # 工作经历 job_history_list = [] lines_job_history = get_resume_job_history(lines) for line in lines_job_history: job_history_list.append(RegUtils.analyToJobHistory(line)) resume_dict['job_history'] = cleanNoneInList(job_history_list)