def verify_environment(env_list):
    """

    :param env_list: <list>
    :return: <bool>
    """
    result = True  # empty list is ok
    for item in env_list:
        try:
            (key, value) = item.split(ENV_SEPARATOR)
        except ValueError:
            result = False
            break
        result &= bool(key)
        result &= bool(value)
    return result
def verify_environment ( env_list ) : result = True for item in env_list : try : ( key , value ) = item . split ( ENV_SEPARATOR ) except ValueError : result = False break result &= bool ( key ) result &= bool ( value ) return result
:param env_list: <list>
    :return: <bool>