Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Import alias Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot NameLoad body Assign NameStore ListLoad TupleLoad Str Num TupleLoad Str Num If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad keyword Str keyword Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword Call NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num keyword Num Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str keyword Num keyword Num decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str Str Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list decorator_list
N/A decimal Decimal django.contrib.sites.models Site django.core urlresolvers django.core.urlresolvers reverse url django.test TestCase django.test.client Client l10n.models * livesettings config_get config_get_group payment utils product.models * satchmo_store.contact.models * satchmo_store.shop.models * satchmo_utils.dynamic lookup_template lookup_url urls make_urlpatterns N/A keyedcache N/A alphabet abcdefghijklmnopqrstuvwxyz make_test_order N/A N/A country state site orderitems N/A None None N/A N/A N/A orderitems N/A N/A orderitems N/A N/A dj-rocks-s-b 5 N/A neat-book-hard 1 N/A N/A site N/A N/A site N/A N/A N/A Site objects get_current N/A c N/A Contact first_name Order last_name Tester role N/A N/A N/A ContactRole objects get pk Customer email order@example.com N/A N/A N/A c save N/A N/A N/A isinstance country Country N/A N/A country N/A N/A N/A Country objects get iso2_code__iexact country N/A ad N/A AddressBook contact c description home street1 test state state city Portland country country is_default_shipping True is_default_billing True N/A N/A N/A ad save N/A o N/A Order contact c shipping_cost N/A Decimal 10.00 site site N/A N/A N/A o save N/A N/A slug qty orderitems N/A N/A p N/A N/A N/A Product objects get slug slug N/A price N/A p unit_price N/A item N/A OrderItem order o product p quantity qty unit_price price line_item_price N/A price qty N/A N/A N/A item save N/A o N/A TestModulesSettings N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self dummy N/A config_get_group PAYMENT_DUMMY N/A tearDown N/A N/A self N/A N/A N/A N/A N/A keyedcache cache_delete N/A testGetDummy N/A N/A self N/A N/A N/A N/A N/A self assert_ N/A N/A self dummy None N/A N/A N/A self assertEqual N/A N/A self dummy LABEL Payment test module N/A testLookupTemplateSet N/A N/A self N/A N/A N/A t N/A lookup_template N/A self dummy test.html N/A N/A N/A self assertEqual t test.html N/A testLookupURL N/A N/A self N/A N/A N/A N/A N/A t N/A lookup_url N/A self dummy test_doesnt_exist N/A N/A N/A self fail Should have failed with NoReverseMatch N/A N/A N/A N/A urlresolvers NoReverseMatch N/A N/A N/A testUrlPatterns N/A N/A self N/A N/A N/A pats N/A make_urlpatterns N/A N/A N/A self assertTrue N/A N/A len pats 0 N/A N/A TestMinimumOrder N/A TestCase N/A N/A fixtures N/A l10n-data.yaml sample-store-data.yaml products.yaml test-config.yaml setUp N/A N/A self N/A N/A N/A N/A self client N/A Client N/A tearDown N/A N/A self N/A N/A N/A N/A N/A keyedcache cache_delete N/A test_checkout_minimums N/A N/A self N/A N/A N/A 
        Validate we can add some items to the cart
         N/A min_order N/A config_get PAYMENT MINIMUM_ORDER N/A N/A N/A min_order update 0.00 N/A producturl N/A N/A urlresolvers reverse satchmo_product kwargs N/A product_slug dj-rocks N/A response N/A N/A N/A self client get producturl N/A N/A N/A self assertContains response Django Rocks shirt count 2 status_code 200 N/A cartadd N/A N/A urlresolvers reverse satchmo_cart_add N/A response N/A N/A N/A self client post cartadd N/A productname 1 2 quantity dj-rocks L BL 2 N/A carturl N/A N/A urlresolvers reverse satchmo_cart N/A N/A N/A self assertRedirects response carturl status_code 302 target_status_code 200 N/A response N/A N/A N/A self client get carturl N/A N/A N/A self assertContains response Django Rocks shirt (Large/Blue) count 1 status_code 200 N/A response N/A N/A N/A self client get N/A url satchmo_checkout-step1 N/A N/A N/A self assertContains response Billing Information count 1 status_code 200 N/A N/A N/A min_order update 100.00 N/A response N/A N/A N/A self client get N/A url satchmo_checkout-step1 N/A N/A N/A self assertContains response This store requires a minimum order count 1 status_code 200 N/A response N/A N/A N/A self client post cartadd N/A productname 1 2 quantity dj-rocks L BL 10 N/A N/A N/A self assertRedirects response carturl status_code 302 target_status_code 200 N/A response N/A N/A N/A self client get N/A url satchmo_checkout-step1 N/A N/A N/A self assertContains response Billing Information count 1 status_code 200 N/A N/A TestPaymentHandling N/A TestCase N/A N/A fixtures N/A l10n-data.yaml sample-store-data.yaml products.yaml test-config.yaml initial_data.yaml setUp N/A N/A self N/A N/A N/A N/A self client N/A Client N/A N/A self US N/A N/A N/A Country objects get iso2_code__iexact US N/A tearDown N/A N/A self N/A N/A N/A N/A N/A keyedcache cache_delete N/A test_authorize N/A N/A self N/A N/A N/A Test making an authorization using DUMMY. N/A order N/A make_test_order N/A self US N/A N/A N/A self assertEqual N/A order balance N/A order total N/A N/A N/A self assertEqual N/A order total N/A Decimal 125.00 N/A processor N/A N/A utils get_processor_by_key PAYMENT_DUMMY N/A N/A N/A processor create_pending_payment order order amount N/A order total N/A N/A N/A self assertEqual N/A N/A N/A order pendingpayments count 1 N/A N/A N/A self assertEqual N/A N/A N/A order payments count 1 N/A pending N/A N/A N/A N/A order pendingpayments all N/A 0 N/A N/A N/A self assertEqual N/A pending amount N/A order total N/A payment N/A N/A N/A N/A order payments all N/A 0 N/A N/A N/A self assertEqual N/A payment amount N/A Decimal 0 N/A N/A N/A self assertEqual N/A pending capture payment N/A N/A N/A self assertEqual N/A order balance_paid N/A Decimal 0 N/A N/A N/A self assertEqual N/A order authorized_remaining N/A Decimal 0 N/A N/A N/A processor prepare_data order N/A result N/A N/A processor authorize_payment N/A N/A N/A self assertEqual N/A result success True N/A auth N/A result payment N/A N/A N/A self assertEqual N/A type auth OrderAuthorization N/A N/A N/A self assertEqual N/A order authorized_remaining N/A Decimal 125.00 N/A result N/A N/A processor capture_authorized_payment auth N/A N/A N/A self assertEqual N/A result success True N/A payment N/A result payment N/A N/A N/A self assertEqual N/A auth capture payment N/A N/A N/A self assertEqual N/A N/A N/A N/A order orderstatus_set latest status New N/A N/A N/A self assertEqual N/A order balance N/A Decimal 0 N/A test_authorize_listener N/A N/A self N/A N/A N/A 
        Test making an authorization using DUMMY, then trigger its capture via
        the built-in listener, ``capture_on_ship_listener()``.

        This the lesser twin of ``test_authorize()``.
         N/A order N/A make_test_order N/A self US N/A N/A N/A self assertEqual N/A order balance N/A order total N/A N/A N/A self assertEqual N/A order total N/A Decimal 125.00 N/A processor N/A N/A utils get_processor_by_key PAYMENT_DUMMY N/A N/A N/A processor create_pending_payment order order amount N/A order total N/A N/A N/A processor prepare_data order N/A result N/A N/A processor authorize_payment N/A N/A N/A self assertEqual N/A result success True N/A N/A N/A self assertEqual N/A order authorized_remaining N/A Decimal 125.00 N/A N/A N/A order add_status Shipped N/A N/A N/A self assertEqual N/A order authorized_remaining N/A Decimal 0 N/A N/A N/A self assertEqual N/A order balance N/A Decimal 0 N/A test_authorize_multiple N/A N/A self N/A N/A N/A Test making multiple authorization using DUMMY. N/A order N/A make_test_order N/A self US N/A N/A N/A self assertEqual N/A order balance N/A order total N/A N/A N/A self assertEqual N/A order total N/A Decimal 125.00 N/A processor N/A N/A utils get_processor_by_key PAYMENT_DUMMY N/A N/A N/A processor create_pending_payment order order amount N/A Decimal 25.00 N/A N/A N/A self assertEqual N/A N/A N/A order pendingpayments count 1 N/A N/A N/A self assertEqual N/A N/A N/A order payments count 1 N/A pending N/A N/A N/A N/A order pendingpayments all N/A 0 N/A N/A N/A self assertEqual N/A pending amount N/A Decimal 25.00 N/A N/A N/A processor prepare_data order N/A result N/A N/A processor authorize_payment N/A N/A N/A self assertEqual N/A result success True N/A N/A N/A processor create_pending_payment order order amount N/A Decimal 100.00 N/A result N/A N/A processor authorize_payment N/A results N/A N/A processor capture_authorized_payments N/A N/A N/A self assertEqual N/A len results 2 N/A r1 N/A results N/A 0 N/A r2 N/A results N/A 1 N/A N/A N/A self assertEqual N/A r1 success True N/A N/A N/A self assertEqual N/A r2 success True N/A N/A N/A self assertEqual N/A N/A N/A N/A order orderstatus_set latest status New N/A N/A N/A self assertEqual N/A order balance N/A Decimal 0 N/A test_capture N/A N/A self N/A N/A N/A Test making a capture without authorization using DUMMY. N/A order N/A make_test_order N/A self US N/A N/A N/A self assertEqual N/A order balance N/A order total N/A N/A N/A self assertEqual N/A order total N/A Decimal 125.00 N/A processor N/A N/A utils get_processor_by_key PAYMENT_DUMMY N/A N/A N/A processor create_pending_payment order order amount N/A order total N/A N/A N/A processor prepare_data order N/A result N/A N/A processor capture_payment N/A N/A N/A self assertEqual N/A result success True N/A pmt1 N/A result payment N/A N/A N/A self assertEqual N/A type pmt1 OrderPayment N/A N/A N/A self assertEqual N/A order authorized_remaining N/A Decimal 0.00 N/A N/A N/A self assertEqual N/A result success True N/A payment N/A result payment N/A N/A N/A self assertEqual pmt1 payment N/A N/A N/A self assertEqual N/A N/A N/A N/A order orderstatus_set latest status New N/A N/A N/A self assertEqual N/A order balance N/A Decimal 0 N/A test_multiple_pending N/A N/A self N/A N/A N/A Test that creating a second pending payment deletes the first one. N/A order N/A make_test_order N/A self US N/A N/A N/A self assertEqual N/A order balance N/A order total N/A N/A N/A self assertEqual N/A order total N/A Decimal 125.00 N/A processor N/A N/A utils get_processor_by_key PAYMENT_DUMMY N/A pend1 N/A N/A processor create_pending_payment order order amount N/A order total N/A pend2 N/A N/A processor create_pending_payment order order amount N/A order total N/A N/A N/A self assertEqual N/A N/A N/A order pendingpayments count 1 N/A N/A N/A self assertEqual N/A N/A N/A order payments count 1 N/A N/A