mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:28 -05:00
25 lines
622 B
Python
Executable File
25 lines
622 B
Python
Executable File
import libraries.stripe
|
|
from libraries.stripe.test.helper import StripeResourceTest
|
|
|
|
|
|
class TransferTest(StripeResourceTest):
|
|
|
|
def test_list_transfers(self):
|
|
libraries.stripe.Transfer.list()
|
|
self.requestor_mock.request.assert_called_with(
|
|
'get',
|
|
'/v1/transfers',
|
|
{}
|
|
)
|
|
|
|
def test_cancel_transfer(self):
|
|
transfer = libraries.stripe.Transfer(id='tr_cancel')
|
|
transfer.cancel()
|
|
|
|
self.requestor_mock.request.assert_called_with(
|
|
'post',
|
|
'/v1/transfers/tr_cancel/cancel',
|
|
{},
|
|
None
|
|
)
|