python-payflowpro icon indicating copy to clipboard operation
python-payflowpro copied to clipboard

new_acct is undefined in tests

Open michaelhelmick opened this issue 12 years ago • 0 comments

**********************************************************************
File "client.py", line 70, in __main__
Failed example:
    responses, unconsumed_data = client.profile_modify(
        profile_id='RT0000000002', extras=[
            Profile(profilename="Joe Bloggs", start=052413,),
            CreditCard(acct=new_acct,expdate=new_expdate,cvv2=new_cvc,),
            ShippingAddress(shiptostreet="123 Main St.", shiptocity="Oakland",
                shiptofirstname="Joe", shiptolastname="Bloggs",
                shiptostate="CA", shiptocountry="US", shiptozip="94123"),
            CustomerInfo(email='[email protected]',
                firstname='Joe', lastname='Bloggs'),
            Tracking(comment1="Order #44",comment2="Submitted by doctest.",)])
Exception raised:
    Traceback (most recent call last):
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/doctest.py", line 1254, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__[17]>", line 4, in <module>
        CreditCard(acct=new_acct,expdate=new_expdate,cvv2=new_cvc,),
    NameError: name 'new_acct' is not defined
**********************************************************************

It looks like new_expdate and new_cvc is undefined, too.

michaelhelmick avatar Jul 22 '13 16:07 michaelhelmick