Module Assign NameStore Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A __author__ ben@emailscrubbed.com (Ben Darnell) viewfinder.backend.db.test.base_test DBBaseTestCase viewfinder.backend.db.subscription Subscription viewfinder.backend.services itunes_store viewfinder.backend.services.test itunes_store_test SubscriptionTestCase N/A DBBaseTestCase N/A testCreateFromITunes N/A N/A self N/A N/A N/A verify_response N/A N/A itunes_store VerifyResponse N/A itunes_store_test kReceiptData N/A N/A itunes_store_test MakeNewResponse N/A N/A N/A Subscription RecordITunesTransaction N/A self _client N/A self stop user_id N/A N/A self _user user_id verify_response verify_response N/A N/A N/A self wait N/A N/A N/A Subscription QueryByUser N/A self _client N/A self stop N/A N/A self _user user_id N/A subs N/A N/A self wait N/A N/A N/A self assertEqual N/A len subs 0 N/A N/A N/A Subscription QueryByUser N/A self _client N/A self stop N/A N/A self _user user_id include_expired True N/A subs N/A N/A self wait N/A N/A N/A self assertEqual N/A len subs 1 N/A N/A N/A self assertEqual N/A N/A subs N/A 0 expiration_ts N/A itunes_store_test kExpirationTime N/A first_transaction_id N/A N/A subs N/A 0 transaction_id N/A verify_response N/A N/A itunes_store VerifyResponse N/A itunes_store_test kReceiptData N/A N/A itunes_store_test MakeRenewedResponse N/A N/A N/A Subscription RecordITunesTransaction N/A self _client N/A self stop user_id N/A N/A self _user user_id verify_response verify_response N/A N/A N/A self wait N/A N/A N/A Subscription QueryByUser N/A self _client N/A self stop N/A N/A self _user user_id include_expired True N/A subs N/A N/A self wait N/A N/A N/A self assertEqual N/A len subs 1 N/A N/A N/A self assertEqual N/A N/A subs N/A 0 expiration_ts N/A itunes_store_test kExpirationTime2 N/A N/A N/A self assertNotEqual N/A N/A subs N/A 0 transaction_id first_transaction_id N/A N/A N/A Subscription QueryByUser N/A self _client N/A self stop N/A N/A self _user user_id include_history True N/A subs N/A N/A self wait N/A N/A N/A self assertEqual N/A len subs 2 N/A N/A N/A self assertItemsEqual N/A N/A sub expiration_ts N/A sub subs N/A N/A itunes_store_test kExpirationTime N/A itunes_store_test kExpirationTime2 N/A N/A