Module Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Call NameLoad Str keyword Call NameLoad Str keyword Call NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpSub Call NameLoad Str Call NameLoad Str Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Call NameLoad Str keyword Call NameLoad Str keyword Call NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpSub Call NameLoad Str Call NameLoad Str AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A datetime decimal Decimal D django.test TestCase oscar.core.compat get_user_model oscar.apps.payment.models Bankcard Source TestBankcard N/A TestCase N/A test_obfuscates_number_before_saving N/A N/A self N/A N/A N/A bankcard N/A Bankcard number 1000011100000004 N/A N/A N/A bankcard prepare_for_save N/A N/A N/A self assertEqual XXXX-XXXX-XXXX-0004 N/A bankcard number N/A test_determines_bankcard_type N/A N/A self N/A N/A N/A bankcard N/A Bankcard number 5500000000000004 N/A N/A N/A self assertEqual Mastercard N/A bankcard card_type N/A test_provides_start_month_property N/A N/A self N/A N/A N/A start N/A N/A datetime date day 1 month 1 year 2010 N/A bankcard N/A Bankcard start_date start N/A N/A N/A self assertEqual 01/10 N/A N/A bankcard start_month N/A test_provides_end_month_property N/A N/A self N/A N/A N/A end N/A N/A datetime date day 1 month 1 year 2010 N/A bankcard N/A Bankcard expiry_date end N/A N/A N/A self assertEqual 01/10 N/A N/A bankcard expiry_month N/A test_bankcard_card_correct_save N/A N/A self N/A N/A N/A user_klass N/A get_user_model N/A user N/A N/A N/A user_klass objects create_user _ a@a.com pwd N/A end N/A N/A datetime date day 1 month 1 year 2010 N/A bankcard N/A N/A N/A Bankcard objects create user user number 5500000000000004 expiry_date end N/A saved_bankcard N/A N/A N/A Bankcard objects get id N/A bankcard id N/A N/A N/A self assertEqual Mastercard N/A saved_bankcard card_type N/A N/A TestSource N/A TestCase N/A test_calculates_initial_balance_correctly N/A N/A self N/A N/A N/A source N/A Source amount_allocated N/A D 100 N/A N/A N/A self assertEqual N/A D 100 N/A source balance N/A test_calculates_balance_correctly N/A N/A self N/A N/A N/A source N/A Source amount_allocated N/A D 100 amount_debited N/A D 80 amount_refunded N/A D 20 N/A N/A N/A self assertEqual N/A N/A N/A D 100 N/A D 80 N/A D 20 N/A source balance N/A test_calculates_amount_for_refund_correctly N/A N/A self N/A N/A N/A source N/A Source amount_allocated N/A D 100 amount_debited N/A D 80 amount_refunded N/A D 20 N/A N/A N/A self assertEqual N/A N/A D 80 N/A D 20 N/A source amount_available_for_refund N/A N/A