def validate_both(first_validator, second_validator):
    """Make sure both validators pass"""

    def validate(cursor_trail, tree):
        return (first_validator(cursor_trail, tree)
                and second_validator(cursor_trail, tree))

    return validate