def METHOD_NAME(
    draft_order,
):
    order = draft_order
    line = order.lines.first()
    variant = line.variant
    variant.product.channel_listings.update(
        available_for_purchase_at=datetime.now(pytz.UTC) + timedelta(days=2)
    )
    line.refresh_from_db()
    with pytest.raises(ValidationError) as e:
        validate_draft_order(order, "US", get_plugins_manager())
    msg = "Can't finalize draft with product unavailable for purchase."
    error = e.value.error_dict["lines"][0]
    assert error.message == msg
    assert error.code == OrderErrorCode.PRODUCT_UNAVAILABLE_FOR_PURCHASE.value