tests/Cluster.py
def validateSpreadFunds(self, initialBalances, transferAmount, source, accounts):
        """Given initial Balances, will validate each account has the expected balance based upon transferAmount.
        This validation is repeated against every node in the cluster."""
        assert(source)
        assert(isinstance(source, Account))
        assert(accounts)
        assert(isinstance(accounts, list))
        assert(len(accounts) > 0)
        assert(initialBalances)
        assert(isinstance(initialBalances, dict))
        assert(isinstance(transferAmount, int))

        for node in self.nodes:
            if node.killed:
                continue

            if Utils.Debug: Utils.Print("Validate funds on %s server port %d." %
                                        (Utils.EnuServerName, node.port))

            if node.validateFunds(initialBalances, transferAmount, source, accounts) is False:
                Utils.Print("ERROR: Failed to validate funds on myeos node port: %d" % (node.port))
                return False

        return True
Given initial Balances, will validate each account has the expected balance based upon transferAmount.
        This validation is repeated against every node in the cluster.
Given initial Balances, will validate each account has the expected balance based upon transferAmount.
This validation is repeated against every node in the cluster.
Given initial Balances will validate each account has the expected balance based upon transferAmount . This validation is repeated against every node in the cluster .
def validateSpreadFunds(self, initialBalances, transferAmount, source, accounts):
        assert(source)
        assert(isinstance(source, Account))
        assert(accounts)
        assert(isinstance(accounts, list))
        assert(len(accounts) > 0)
        assert(initialBalances)
        assert(isinstance(initialBalances, dict))
        assert(isinstance(transferAmount, int))
        for node in self.nodes:
            if node.killed:
                continue
            if Utils.Debug: Utils.Print("Validate funds on %s server port %d." %
                                        (Utils.EnuServerName, node.port))
            if node.validateFunds(initialBalances, transferAmount, source, accounts) is False:
                Utils.Print("ERROR: Failed to validate funds on myeos node port: %d" % (node.port))
                return False
        return True
def validateSpreadFunds ( self , initialBalances , transferAmount , source , accounts ) : assert ( source ) assert ( isinstance ( source , Account ) ) assert ( accounts ) assert ( isinstance ( accounts , list ) ) assert ( len ( accounts ) > 0 ) assert ( initialBalances ) assert ( isinstance ( initialBalances , dict ) ) assert ( isinstance ( transferAmount , int ) ) for node in self . nodes : if node . killed : continue if Utils . Debug : Utils . Print ( "Validate funds on %s server port %d." % ( Utils . EnuServerName , node . port ) ) if node . validateFunds ( initialBalances , transferAmount , source , accounts ) is False : Utils . Print ( "ERROR: Failed to validate funds on myeos node port: %d" % ( node . port ) ) return False return True
Given initial Balances, will validate each account has the expected balance based upon transferAmount.
Given initial Balances will validate each account has the expected balance based upon transferAmount .
"""Given initial Balances, will validate each account has the expected balance based upon transferAmount.
        This validation is repeated against every node in the cluster."""
self
initialBalances
transferAmount
source
accounts