Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Dict Str Str Dict Str Str Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad BinOpMod Str TupleLoad NameLoad NameLoad attr Str attr ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad Num Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Dict Str Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Dict Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Dict Str Dict Str NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str Index Str NameLoad decorator_list Call NameLoad Str Call NameLoad Str decorator_list
N/A __future__ unicode_literals N/A hashlib N/A json decimal Decimal unittest TestCase django.http HttpResponse HttpResponseForbidden mock MagicMock patch N/A CoinbaseProvider N/A PAYMENT_TOKEN 5a4dae68-2715-4b1e-8bb2-2c2dbe9255f6 N/A KEY abc123 N/A SECRET 123abc N/A VARIANT coinbase N/A COINBASE_REQUEST N/A order N/A transaction custom N/A id 123456 N/A N/A N/A N/A hashlib md5 N/A N/A N/A coinbase-%s-%s N/A PAYMENT_TOKEN KEY encode utf-8 hexdigest Payment N/A object N/A N/A id 1 N/A description payment N/A currency BTC N/A total N/A Decimal 100 N/A status waiting N/A token PAYMENT_TOKEN N/A variant VARIANT change_status N/A N/A self status N/A N/A N/A N/A self status status N/A get_failure_url N/A N/A self N/A N/A N/A http://cancel.com N/A get_process_url N/A N/A self N/A N/A N/A http://example.com N/A get_purchased_items N/A N/A self N/A N/A N/A N/A N/A save N/A N/A self N/A N/A N/A self N/A get_success_url N/A N/A self N/A N/A N/A http://success.com N/A N/A TestCoinbaseProvider N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self payment N/A Payment N/A N/A self provider N/A CoinbaseProvider key KEY secret SECRET N/A test_process_data N/A N/A self N/A N/A N/A 
        CoinbaseProvider.process_data() returns a correct HTTP response
         N/A request N/A MagicMock N/A N/A request body N/A N/A json dumps COINBASE_REQUEST N/A response N/A N/A N/A self provider process_data N/A self payment request N/A N/A N/A self assertEqual N/A type response HttpResponse N/A N/A N/A self assertEqual N/A N/A self payment status confirmed N/A test_incorrect_custom_token_process_data N/A N/A self N/A N/A N/A 
        CoinbaseProvider.process_data() checks request custom token
         N/A data N/A dict COINBASE_REQUEST N/A N/A N/A data update N/A order N/A custom fake N/A request N/A MagicMock N/A N/A request body N/A N/A json dumps data N/A response N/A N/A N/A self provider process_data N/A self payment request N/A N/A N/A self assertEqual N/A type response HttpResponseForbidden N/A test_incorrect_data_process_data N/A N/A self N/A N/A N/A 
        CoinbaseProvider.process_data() checks request body
         N/A request N/A MagicMock N/A N/A request POST N/A id 1234 N/A response N/A N/A N/A self provider process_data N/A self payment request N/A N/A N/A self assertEqual N/A type response HttpResponseForbidden N/A test_provider_returns_checkout_url N/A N/A self mocked_post mocked_time N/A N/A N/A code 123abc N/A signature 21d476eff7b2e6cccdfe6deb0c097ba638d5de7e775b303e4fdb2f8bfeff72e2 N/A url N/A https://sandbox.coinbase.com/checkouts/%s code N/A post N/A MagicMock N/A N/A post json N/A MagicMock return_value N/A button N/A code code N/A N/A post status_code 200 N/A N/A mocked_post return_value post N/A N/A mocked_time return_value 1 N/A form N/A N/A N/A self provider get_form N/A self payment N/A N/A N/A self assertEqual N/A form action url N/A N/A N/A self assertEqual N/A N/A N/A N/A mocked_post call_args N/A 1 N/A headers N/A ACCESS_SIGNATURE signature N/A N/A patch time.time N/A patch requests.post N/A