def test_nullable():
    nullable_type = hug.types.Nullable(hug.types.text, hug.types.LongerThan(10))
    assert nullable_type(12345678901) == "12345678901"
    assert nullable_type(None) is None
    with pytest.raises(ValueError):
        nullable_type(1)
This method expects `amount` to be a Decimal type representing a
dataset/ETHPy150Open timothycrosley/hug/tests/test_types.py/test_nullable--crossover with--dataset/ETHPy150Open pydanny/dj-stripe/djstripe/stripe_objects.py/StripeCustomer.charge