Example #1
0
    def test_delete_bank_account(self):
        self.hit('homer', 'delete', 'mango-ba', self.bank_account.Id)

        homer = Participant.from_username('homer')
        route = ExchangeRoute.from_address(homer, 'mango-ba', self.bank_account.Id)
        assert route.status == 'canceled'
        assert homer.mangopay_user_id
Example #2
0
    def test_delete_bank_account(self):
        self.hit('homer', 'delete', 'mango-ba', self.bank_account.Id)

        homer = Participant.from_username('homer')
        route = ExchangeRoute.from_address(homer, 'mango-ba', self.bank_account.Id)
        assert route.status == 'canceled'
        assert homer.mangopay_user_id
Example #3
0
    def test_delete_bank_account(self):
        self.hit("homer", "delete", "mango-ba", self.bank_account.Id)

        homer = Participant.from_username("homer")
        route = ExchangeRoute.from_address(homer, "mango-ba", self.bank_account.Id)
        assert route.error == homer.get_bank_account_error() == "invalidated"
        assert homer.mangopay_user_id

        # Check that update_error doesn't update an invalidated route
        route.update_error("some error")
        assert route.error == homer.get_bank_account_error() == "invalidated"
Example #4
0
    def test_delete_bank_account(self):
        self.hit('homer', 'delete', 'mango-ba', self.bank_account.Id)

        homer = Participant.from_username('homer')
        route = ExchangeRoute.from_address(homer, 'mango-ba', self.bank_account.Id)
        assert route.error == 'invalidated'
        assert homer.mangopay_user_id

        # Check that update_error doesn't update an invalidated route
        route.update_error('some error')
        assert route.error == 'invalidated'
    def test_delete_bank_account(self):
        self.hit('homer', 'delete', 'mango-ba', self.bank_account.Id)

        homer = Participant.from_username('homer')
        route = ExchangeRoute.from_address(homer, 'mango-ba',
                                           self.bank_account.Id)
        assert route.error == 'invalidated'
        assert homer.mangopay_user_id

        # Check that update_error doesn't update an invalidated route
        route.update_error('some error')
        assert route.error == 'invalidated'