Browse Source

Update test to check for updated error messages in AmountFromValue().

v1.0.9-lin
Simon 7 years ago
parent
commit
238fec642d
  1. 4
      qa/rpc-tests/wallet_protectcoinbase.py

4
qa/rpc-tests/wallet_protectcoinbase.py

@ -242,14 +242,14 @@ class WalletProtectCoinbaseTest (BitcoinTestFramework):
self.nodes[0].z_sendmany(myzaddr, recipients, 1, -1)
except JSONRPCException,e:
errorString = e.error['message']
assert_equal("Invalid amount" in errorString, True)
assert_equal("Amount out of range" in errorString, True)
# Send will fail because fee is larger than MAX_MONEY
try:
self.nodes[0].z_sendmany(myzaddr, recipients, 1, Decimal('21000000.00000001'))
except JSONRPCException,e:
errorString = e.error['message']
assert_equal("Invalid amount" in errorString, True)
assert_equal("Amount out of range" in errorString, True)
# Send will fail because fee is larger than sum of outputs
try:

Loading…
Cancel
Save