Beispiel #1
0
    def test_is_successful_errored(self):
        card = Card()
        card.status = "errored"
        card_payment = CardPayment()
        card_payment.card = card

        self.assertFalse(card_payment.is_successful())
Beispiel #2
0
    def test_is_successful(self):
        card = Card()
        card.status = "processed"
        card_payment = CardPayment()
        card_payment.card = card

        self.assertTrue(card_payment.is_successful())