def test_store_result_stores_ach_error(self): for message in ['cheese is yummy', 'cheese smells like my vibrams']: billing.store_result(self.db, u"bank account", 'alice', message) alice = Participant.from_username('alice') assert alice.last_ach_result == message
def test_store_result_stores_bill_error(self): billing.store_result(self.db, u"credit card", "alice", "cheese is yummy") alice = Participant.from_username('alice') assert alice.last_bill_result == "cheese is yummy"