def validate_product_name(to_validate, message): split = to_validate.split(" ") name = " ".join([split[0], split[1]]) ListProductName = ["Windows 7", "Windows 8.1", "Windows 10"] SoftAssert.is_in_list(name, ListProductName, message) validate_edition_id(split[2], message)
def validate_svc_kb_number(to_validate, message): ListKbNumber = ["KB2841134", "KB4088835", "KB4032782", "KB4016446", "KB3210694", "KB3200006", "KB3199375", "KB3192665", "KB4096040", "KB4089187", "KB4074736", "KB4056568", "KB4052978", "KB4047206", "KB4040685", "KB4036586", "KB4034733", "KB4025252", "KB4021558", "KB4018271", "KB4014661", "KB4012204", "KB3185319", "KB3175443", "KB3170106", "KB3160005", "KB3154070", "KB3148198"] SoftAssert.is_in_list(to_validate, ListKbNumber, message)
def validate_edition_id(to_validate, message): ListEditionId = ["Starter", "HomeBasic", "HomePremium", "Professional", "ProfessionalN", "ProfessionalKN", "Enterprise", "Ultimate", "Core", "Pro", "ProN", "Enterprise", "EnterpriseN", "OEM", "withBing", "Home", "ProEducation", "EnterpriseLTSB", "Education", "IoTCore", "IoTEnterprise", "S"] SoftAssert.is_in_list(to_validate, ListEditionId, message)
def validate_current_version(to_validate, message): ListCurrentVersion = ['6.1', '7.1', '9.0'] SoftAssert.is_in_list(to_validate, ListCurrentVersion, message)
def validate_current_build(to_validate, message): ListCurrentBuild = ['7601', '9600', '16299'] SoftAssert.is_in_list(to_validate, ListCurrentBuild, message)
def validate_build_lab_ex(to_validate, message): ListBuildLabEx = ['7601.23915.amd64fre.win7sp1_ldr.170913-0600', '9600.17415.amd64fre.winblue_r4.141028-1500', '16299.15.amd64fre.rs3_release.170928-1534'] SoftAssert.is_in_list(to_validate, ListBuildLabEx, message)
def validate_build_lab(to_validate, message): ListBuildLab = ['7601.win7sp1_ldr.170913-0600', '9600.winblue_r4.141028-1500', '16299.rs3_release.170928-1534'] SoftAssert.is_in_list(to_validate, ListBuildLab, message)