def METHOD_NAME(
    order_with_coupon, reusable, order_status
):
    """get_unexpired_coupon should raise a B2BCoupon.DoesNotExist if the coupon is already used in an order"""
    order = order_with_coupon.order
    coupon = order_with_coupon.coupon
    coupon.reusable = reusable
    coupon.save()
    order.status = order_status
    order.save()
    if not reusable:
        with pytest.raises(B2BCoupon.DoesNotExist):
            B2BCoupon.objects.get_unexpired_coupon(
                coupon_code=coupon.coupon_code, product_id=coupon.product_id
            )
    else:
        assert coupon == B2BCoupon.objects.get_unexpired_coupon(
            coupon_code=coupon.coupon_code, product_id=coupon.product_id
        )