Did I find the right examples for you? yes no

All Samples(7)  |  Call(6)  |  Derive(0)  |  Import(1)
Instantiate with a given configuration.

src/p/a/PayPy-0.6/tests/test_subscription.py   PayPy(Download)
import datetime
import decimal
 
from unittest           import TestCase
from paypy.subscription import Subscription
 
 
        subscription = Subscription(arb)
        result       = subscription.create()
        result_buf   = result
        arb.authentication = auth
 
        subscription = Subscription(arb)
        result       = subscription.update()
        assert result.code == 'I00001', 'Expected a successful request, received this instead: %s' % result.reason
        arb.authentication = auth
 
        subscription = Subscription(arb)
        result       = subscription.status()
        assert result.status, 'Expected a successful request, received this instead: %s' % result.reason
        arb.authentication = auth
 
        subscription = Subscription(arb)
        result       = subscription.cancel()
        assert result.code == 'I00001', 'Expected a successful request, received this instead: %s' % result.reason