Module Expr Str Import alias ImportFrom alias Import alias Import alias Import alias identifier ImportFrom alias alias alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Str Str Num Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign AttributeStore NameLoad attr Dict Str Str Num Dict Str Str Str Str Str Num Str ListLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Assert CompareIs AttributeLoad Call NameLoad Str attr NameLoad Assert CompareIs AttributeLoad Call NameLoad Str attr NameLoad Expr Call NameLoad Str Assert CompareIs AttributeLoad Call NameLoad Str attr NameLoad Assert CompareIs AttributeLoad Call NameLoad Str attr NameLoad Expr Call NameLoad Str Assert CompareIs AttributeLoad Call NameLoad Str attr NameLoad Assert CompareIs AttributeLoad Call NameLoad Str attr NameLoad Expr Call NameLoad Str Assert CompareIs AttributeLoad Call NameLoad Str attr NameLoad Assert CompareIs AttributeLoad Call NameLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Expr Call NameLoad Str Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call NameLoad Str Assign NameStore Call NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call NameLoad Str Assign NameStore Call NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr Str body TryExcept body Expr Call AttributeLoad NameLoad attr Assert NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assert CompareEq AttributeLoad NameLoad attr Num With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Assert NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Assign NameStore Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq SubscriptLoad NameLoad Index Str Num Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A See official document [#documnet]_ for more information.

.. [#document] https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/VerifyingStoreReceipts/VerifyingStoreReceipts.html#//apple_ref/doc/uid/TP40008267-CH104-SW1
 N/A json mock patch N/A requests N/A unittest N/A itunesiap.legacy itunesiap itunesiap.legacy Request Receipt set_verification_mode itunesiap.legacy exceptions tests.v2_test LEGACY_RAW_RECEIPT TestsIAP N/A N/A unittest TestCase N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super TestsIAP self __init__ args kwargs N/A N/A self iap_response N/A status receipt 0 N/A purchase_date_pst product_id original_transaction_id unique_identifier original_purchase_date_pst original_purchase_date bvrs original_purchase_date_ms purchase_date item_id purchase_date_ms bid transaction_id quantity 2013-01-01 00:00:00 America/Los_Angeles TestProduction1 1000000012345678 bcbdb3d45543920dd9sd5c79a72948001fc22a39 2013-01-01 00:00:00 America/Los_Angeles 2013-01-01 00:00:00 Etc/GMT 1.0 1348200000000 2013-01-01 00:00:00 Etc/GMT 500000000 134820000000 org.youknowone.itunesiap 1000000012345678 1 N/A N/A self iap_response_in_app N/A status receipt 0 N/A original_purchase_date_pst version_external_identifier original_purchase_date in_app 2013-01-01 00:00:00 America/Los_Angeles 0 2013-01-01 07:00:00 Etc/GMT N/A N/A is_trial_period purchase_date_pst product_id original_transaction_id original_purchase_date_pst original_purchase_date original_purchase_date_ms purchase_date purchase_date_ms transaction_id quantity false 2013-05-18 20:21:09 America/Los_Angeles org.itunesiap 1000000155715958 2013-05-18 19:29:45 America/Los_Angeles 2013-05-19 02:29:45 Etc/GMT 1432002585000 2013-05-19 03:21:09 Etc/GMT 1432005669000 1000000155715958 1 N/A is_trial_period purchase_date_pst product_id original_transaction_id original_purchase_date_pst original_purchase_date original_purchase_date_ms purchase_date purchase_date_ms transaction_id quantity false 2013-05-19 20:21:09 America/Los_Angeles org.itunesiap 1000000155718067 2013-05-18 19:37:10 America/Los_Angeles 2013-05-19 02:37:10 Etc/GMT 1432003030000 2013-05-19 03:21:09 Etc/GMT 1432005669000 1000000155718067 1 N/A test_global_mode N/A N/A self N/A N/A N/A N/A set_verification_mode production N/A N/A N/A N/A Request use_production True N/A N/A N/A N/A Request use_sandbox False N/A N/A set_verification_mode sandbox N/A N/A N/A N/A Request use_production False N/A N/A N/A N/A Request use_sandbox True N/A N/A set_verification_mode reject N/A N/A N/A N/A Request use_production False N/A N/A N/A N/A Request use_sandbox False N/A N/A set_verification_mode review N/A N/A N/A N/A Request use_production True N/A N/A N/A N/A Request use_sandbox True N/A test_request N/A N/A self N/A N/A N/A sandbox_receipt LEGACY_RAW_RECEIPT N/A N/A set_verification_mode production N/A request N/A Request sandbox_receipt N/A N/A N/A receipt N/A N/A request verify N/A False N/A N/A N/A N/A exceptions InvalidReceipt N/A e N/A N/A N/A N/A e status 21007 N/A N/A N/A e description N/A N/A e _descriptions N/A 21007 N/A N/A set_verification_mode sandbox N/A request N/A Request sandbox_receipt N/A receipt N/A N/A request verify N/A receipt N/A test_responses N/A N/A self N/A N/A N/A N/A N/A patch object requests post mock_post N/A N/A iap_status_21007 N/A N/A N/A self iap_response copy N/A N/A iap_status_21007 N/A status 21007 N/A N/A N/A mock_post return_value content N/A N/A N/A N/A json dumps iap_status_21007 encode utf-8 N/A N/A N/A mock_post return_value status_code 200 N/A N/A set_verification_mode production N/A request N/A Request DummyReceipt N/A N/A N/A N/A N/A request verify N/A N/A N/A N/A exceptions InvalidReceipt N/A e N/A N/A N/A N/A e status 21007 N/A N/A N/A e description N/A N/A e _descriptions N/A 21007 N/A N/A N/A patch object requests post mock_post N/A N/A N/A N/A mock_post return_value content Not avaliable N/A N/A N/A mock_post return_value status_code 500 N/A N/A set_verification_mode production N/A request N/A Request DummyReceipt N/A N/A N/A N/A N/A request verify N/A N/A N/A N/A exceptions ItunesServerNotAvailable N/A e N/A N/A N/A N/A N/A e args N/A 0 500 N/A N/A N/A N/A e args N/A 1 Not avaliable N/A test_context N/A N/A self N/A N/A N/A sandbox_receipt LEGACY_RAW_RECEIPT N/A request N/A Request sandbox_receipt verify_ssl True N/A configs N/A N/A request use_production N/A request use_sandbox N/A N/A N/A request verification_mode production N/A N/A N/A N/A N/A N/A request verify N/A False N/A N/A N/A N/A exceptions InvalidReceipt N/A e N/A N/A N/A N/A e status 21007 N/A N/A N/A request verification_mode review N/A N/A N/A N/A request verify N/A N/A N/A N/A N/A request verify N/A False N/A N/A N/A N/A exceptions InvalidReceipt N/A e N/A N/A N/A N/A e status 21007 N/A N/A configs N/A N/A request use_production N/A request use_sandbox N/A test_receipt N/A N/A self N/A N/A N/A receipt N/A Receipt N/A self iap_response N/A N/A N/A receipt status 0 N/A N/A N/A receipt product_id TestProduction1 N/A N/A N/A receipt original_transaction_id 1000000012345678 N/A N/A N/A receipt quantity 1 N/A N/A N/A receipt unique_identifier bcbdb3d45543920dd9sd5c79a72948001fc22a39 N/A test_shortcut N/A N/A self N/A N/A N/A sandbox_receipt LEGACY_RAW_RECEIPT N/A mode N/A N/A itunesiap get_verification_mode N/A N/A N/A itunesiap set_verification_mode sandbox N/A N/A N/A itunesiap verify sandbox_receipt N/A N/A N/A itunesiap set_verification_mode mode N/A test_extract_receipt N/A N/A self N/A N/A N/A 
            Testing the extract receipt function.
            The function which helps to put the last 'in_app's fields' in the
            'receipt dictionary'
         N/A request N/A Request DummyReceipt use_production True N/A ext_receipt N/A N/A request _extract_receipt N/A self iap_response N/A N/A N/A ext_receipt N/A status 0 N/A N/A N/A N/A ext_receipt N/A receipt N/A product_id TestProduction1 N/A N/A N/A N/A ext_receipt N/A receipt N/A original_transaction_id 1000000012345678 N/A N/A N/A N/A ext_receipt N/A receipt N/A quantity 1 N/A request N/A Request DummyReceipt use_production True N/A ext_receipt N/A N/A request _extract_receipt N/A self iap_response_in_app N/A N/A N/A ext_receipt N/A status 0 N/A N/A N/A N/A ext_receipt N/A receipt N/A product_id org.itunesiap N/A N/A N/A N/A ext_receipt N/A receipt N/A original_transaction_id 1000000155718067 N/A N/A N/A N/A ext_receipt N/A receipt N/A quantity 1 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main