import re


def passport(value):
    """
    This method is used to validate zim passport.
    All Zimbabwean passports are in the format AB123456
    :param value: The string to be tested
    :return: boolean
    """
    is_valid = False
    pattern = re.compile(r"^[A-Z]{2}[0-9]{6}$")

    try:
        if re.fullmatch(pattern, value):
            is_valid = True
    except re.error:
        is_valid = False
    return is_valid