def verify_transfer(self, source, destination, amount, user=None):
        if amount <= 0:
            raise exceptions.InvalidAmount("Debits must use a positive amount")
        if not source.is_open():
            raise exceptions.ClosedAccount("Source account has been closed")
        if not source.can_be_authorised_by(user):
            raise exceptions.AccountException(
                "This user is not authorised to make transfers from "
                "this account")
        if not destination.is_open():
            raise exceptions.ClosedAccount(
                "Destination account has been closed")
        if not source.is_debit_permitted(amount):
            msg = "Unable to debit %.2f from account #%d:"
            raise exceptions.InsufficientFunds(
                msg % (amount, source.id))
Get all pools.
dataset/ETHPy150Open django-oscar/django-oscar-accounts/src/oscar_accounts/abstract_models.py/PostingManager.verify_transfer--crossover with--dataset/ETHPy150Open mongodb/mongo-python-driver/test/utils.py/get_pools