def _test_weights_treshold(self, authority):
    ' This method raises an error if the threshold of an authority cannot\n            be reached by the weights.\n\n            :param dict authority: An authority of an account\n            :raises ValueError: if the threshold is set too high\n        '
    weights = 0
    for a in authority['account_auths']:
        weights += int(a[1])
    for a in authority['key_auths']:
        weights += int(a[1])
    if (authority['weight_threshold'] > weights):
        raise ValueError('Threshold too restrictive!')
    if (authority['weight_threshold'] == 0):
        raise ValueError('Cannot have threshold of 0')
This method raises an error if the threshold of an authority cannot
be reached by the weights.

:param dict authority: An authority of an account
:raises ValueError: if the threshold is set too high
def _test_weights_treshold(self, authority):
    ' This method raises an error if the threshold of an authority cannot\n            be reached by the weights.\n\n            :param dict authority: An authority of an account\n            :raises ValueError: if the threshold is set too high\n        '
    weights = 0
    for a in authority['account_auths']:
        weights += int(a[1])
    for a in authority['key_auths']:
        weights += int(a[1])
    if (authority['weight_threshold'] > weights):
        raise ValueError('Threshold too restrictive!')
    if (authority['weight_threshold'] == 0):
        raise ValueError('Cannot have threshold of 0')