def is_period_current(subscription):
    """
    Tests if the provided subscription object for the current period

    Args:
        subscription: a pinax.stripe.models.Subscription object to test
    """
    return subscription.current_period_end > timezone.now()
dataset/ETHPy150Open pinax/pinax-stripe/pinax/stripe/actions/subscriptions.py/is_period_current/original