Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new_acct is undefined in tests #10

Open
michaelhelmick opened this issue Jul 22, 2013 · 0 comments
Open

new_acct is undefined in tests #10

michaelhelmick opened this issue Jul 22, 2013 · 0 comments

Comments

@michaelhelmick
Copy link

**********************************************************************
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='test@example.com',
                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.

bkeating pushed a commit that referenced this issue Jul 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant