Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Num Num keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num Num Num keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Num keyword Str keyword Str keyword Num keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Num keyword Str keyword Str keyword Num keyword Str For NameStore Call NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Str attr NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Str attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword NameLoad keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Str attr Num keyword Call AttributeLoad Str attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Str attr Num keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Str attr Num keyword Call AttributeLoad Str attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Str attr Num keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num body If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num body If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad Call NameLoad attr attr keyword Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Call AttributeLoad NameLoad attr Num Num Num keyword AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Call AttributeLoad NameLoad attr Num Num Num keyword AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Call AttributeLoad NameLoad attr Num Num Num keyword AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Call AttributeLoad NameLoad attr Num Num Num keyword AttributeLoad NameLoad attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list decorator_list
N/A N/A datetime N/A decimal django.test TestCase django.utils timezone django.contrib.auth get_user_model models Customer Subscription Charge Plan CustomerManagerTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A User N/A get_user_model N/A period_start N/A N/A datetime datetime 2013 4 1 tzinfo N/A timezone utc N/A period_end N/A N/A datetime datetime 2013 4 30 tzinfo N/A timezone utc N/A start N/A N/A datetime datetime 2013 1 1 tzinfo N/A timezone utc N/A N/A self plan N/A N/A N/A Plan objects create stripe_id p1 amount 10 currency usd interval monthly interval_count 1 name Pro N/A N/A self plan2 N/A N/A N/A Plan objects create stripe_id p2 amount 5 currency usd interval monthly interval_count 1 name Light N/A i N/A range 10 N/A N/A customer N/A N/A N/A Customer objects create user N/A N/A N/A User objects create_user username N/A N/A patrick{0} format i stripe_id N/A N/A cus_xxxxxxxxxxxxxx{0} format i N/A N/A N/A N/A Subscription objects create stripe_id N/A N/A sub_{} format i customer customer plan N/A self plan current_period_start period_start current_period_end period_end status active start start quantity 1 N/A customer N/A N/A N/A Customer objects create user N/A N/A N/A User objects create_user username N/A N/A patrick{0} format 11 stripe_id N/A N/A cus_xxxxxxxxxxxxxx{0} format 11 N/A N/A N/A N/A Subscription objects create stripe_id N/A N/A sub_{} format 11 customer customer plan N/A self plan current_period_start period_start current_period_end period_end status canceled canceled_at period_end start start quantity 1 N/A customer N/A N/A N/A Customer objects create user N/A N/A N/A User objects create_user username N/A N/A patrick{0} format 12 stripe_id N/A N/A cus_xxxxxxxxxxxxxx{0} format 12 N/A N/A N/A N/A Subscription objects create stripe_id N/A N/A sub_{} format 12 customer customer plan N/A self plan2 current_period_start period_start current_period_end period_end status active start start quantity 1 N/A test_started_during_no_records N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A N/A N/A N/A N/A Customer objects started_during 2013 4 count 0 N/A test_started_during_has_records N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A N/A N/A N/A N/A Customer objects started_during 2013 1 count 12 N/A test_canceled_during N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A N/A N/A N/A N/A Customer objects canceled_during 2013 4 count 1 N/A test_canceled_all N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A N/A N/A N/A N/A Customer objects canceled count 1 N/A test_active_all N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A N/A N/A N/A N/A Customer objects active count 11 N/A test_started_plan_summary N/A N/A self N/A N/A N/A plan N/A N/A N/A Customer objects started_plan_summary_for 2013 1 N/A N/A N/A N/A plan N/A subscription__plan N/A self plan N/A N/A N/A N/A self assertEquals N/A plan N/A count 11 N/A N/A N/A plan N/A subscription__plan N/A self plan2 N/A N/A N/A N/A self assertEquals N/A plan N/A count 1 N/A test_active_plan_summary N/A N/A self N/A N/A N/A plan N/A N/A N/A Customer objects active_plan_summary N/A N/A N/A N/A plan N/A subscription__plan N/A self plan N/A N/A N/A N/A self assertEquals N/A plan N/A count 10 N/A N/A N/A plan N/A subscription__plan N/A self plan2 N/A N/A N/A N/A self assertEquals N/A plan N/A count 1 N/A test_canceled_plan_summary N/A N/A self N/A N/A N/A plan N/A N/A N/A Customer objects canceled_plan_summary_for 2013 1 N/A N/A N/A N/A plan N/A subscription__plan N/A self plan N/A N/A N/A N/A self assertEquals N/A plan N/A count 1 N/A N/A N/A plan N/A subscription__plan N/A self plan2 N/A N/A N/A N/A self assertEquals N/A plan N/A count 0 N/A test_churn N/A N/A self N/A N/A N/A N/A N/A self assertEquals N/A N/A N/A Customer objects churn N/A N/A N/A decimal Decimal 1 N/A N/A decimal Decimal 11 N/A N/A ChargeManagerTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A customer N/A N/A N/A Customer objects create user N/A N/A N/A N/A get_user_model objects create_user username patrick stripe_id cus_xxxxxxxxxxxxxx N/A N/A N/A N/A Charge objects create stripe_id ch_1 customer customer charge_created N/A N/A datetime datetime 2013 1 1 tzinfo N/A timezone utc paid True amount N/A N/A decimal Decimal 100 amount_refunded N/A N/A decimal Decimal 0 N/A N/A N/A N/A Charge objects create stripe_id ch_2 customer customer charge_created N/A N/A datetime datetime 2013 1 1 tzinfo N/A timezone utc paid True amount N/A N/A decimal Decimal 100 amount_refunded N/A N/A decimal Decimal 10 N/A N/A N/A N/A Charge objects create stripe_id ch_3 customer customer charge_created N/A N/A datetime datetime 2013 1 1 tzinfo N/A timezone utc paid False amount N/A N/A decimal Decimal 100 amount_refunded N/A N/A decimal Decimal 0 N/A N/A N/A N/A Charge objects create stripe_id ch_4 customer customer charge_created N/A N/A datetime datetime 2013 4 1 tzinfo N/A timezone utc paid True amount N/A N/A decimal Decimal 500 amount_refunded N/A N/A decimal Decimal 15.42 N/A test_charges_during N/A N/A self N/A N/A N/A charges N/A N/A N/A Charge objects during 2013 1 N/A N/A N/A self assertEqual N/A N/A charges count 3 N/A test_paid_totals_for_jan N/A N/A self N/A N/A N/A totals N/A N/A N/A Charge objects paid_totals_for 2013 1 N/A N/A N/A self assertEqual N/A totals N/A total_amount N/A N/A decimal Decimal 200 N/A N/A N/A self assertEqual N/A totals N/A total_refunded N/A N/A decimal Decimal 10 N/A test_paid_totals_for_apr N/A N/A self N/A N/A N/A totals N/A N/A N/A Charge objects paid_totals_for 2013 4 N/A N/A N/A self assertEqual N/A totals N/A total_amount N/A N/A decimal Decimal 500 N/A N/A N/A self assertEqual N/A totals N/A total_refunded N/A N/A decimal Decimal 15.42 N/A test_paid_totals_for_dec N/A N/A self N/A N/A N/A totals N/A N/A N/A Charge objects paid_totals_for 2013 12 N/A N/A N/A self assertEqual N/A totals N/A total_amount None N/A N/A N/A self assertEqual N/A totals N/A total_refunded None N/A N/A