コード例 #1
0
ファイル: test_billing.py プロジェクト: smitzter/gratipay.com
    def test_clear_bank_account(self):
        billing.clear(self.db, u"bank account", 'david', self.david_href)

        customer = balanced.Customer.fetch(self.david_href)
        bank_accounts = customer.bank_accounts.all()
        assert len(bank_accounts) == 0

        david = Participant.from_username('david')
        assert david.last_ach_result is None
        assert david.balanced_customer_href
コード例 #2
0
ファイル: test_billing.py プロジェクト: smitzter/gratipay.com
    def test_clear(self):
        billing.clear(self.db, u"credit card", 'david', self.david_href)

        customer = balanced.Customer.fetch(self.david_href)
        cards = customer.cards.all()
        assert len(cards) == 0

        david = Participant.from_username('david')
        assert david.last_bill_result is None
        assert david.balanced_customer_href