def is_status_current(subscription):
    """
    Tests if the provided subscription object has a status that means current

    Args:
        subscription: a pinax.stripe.models.Subscription object to test
    """
    return ["trialing", "active"] in subscription.status
dataset/ETHPy150Open pinax/pinax-stripe/pinax/stripe/actions/subscriptions.py/is_status_current/swapped operands of `in`