def test_bank_is_successful(self): bank = Bank() payment = Payment() payment.source = "bank" payment.bank = bank self.assertTrue(payment.is_successful())
def test_is_successful(self): bank = Bank() bank.status = "processed" payment = Payment() payment.source = "bank" payment.bank = bank self.assertTrue(payment.is_successful())
def test_is_successful(self): card = Card() card.status = "processed" payment1 = Payment() payment1.card = card bank = Bank() bank.status = "processed" payment2 = Payment() payment2.bank = bank self.assertTrue(payment1.is_successful()) self.assertTrue(payment2.is_successful())