diff options
author | mrbandrews <bandrewsny@gmail.com> | 2016-11-15 15:37:46 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-11-19 23:20:14 +0100 |
commit | 3107280e14f7ca63c693937aac490794ae746a09 (patch) | |
tree | 99cec293ac513c74bb7cebb2e99d4b4b9e301bd5 /qa/rpc-tests/wallet.py | |
parent | 9460771a60e28b42cd21ac38710dd9ee7f57cc71 (diff) | |
download | bitcoin-3107280e14f7ca63c693937aac490794ae746a09.tar.xz |
[qa] add assert_raises_message to check specific error message
Github-Pull: #9168
Rebased-From: 307acdd3df03082295ac0f7fe9eba7dd35973bc4
Diffstat (limited to 'qa/rpc-tests/wallet.py')
-rwxr-xr-x | qa/rpc-tests/wallet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/wallet.py b/qa/rpc-tests/wallet.py index e43f6ea5d2..3c0dc0f4ea 100755 --- a/qa/rpc-tests/wallet.py +++ b/qa/rpc-tests/wallet.py @@ -71,7 +71,7 @@ class WalletTest (BitcoinTestFramework): unspent_0 = self.nodes[2].listunspent()[0] unspent_0 = {"txid": unspent_0["txid"], "vout": unspent_0["vout"]} self.nodes[2].lockunspent(False, [unspent_0]) - assert_raises(JSONRPCException, self.nodes[2].sendtoaddress, self.nodes[2].getnewaddress(), 20) + assert_raises_message(JSONRPCException, "Insufficient funds", self.nodes[2].sendtoaddress, self.nodes[2].getnewaddress(), 20) assert_equal([unspent_0], self.nodes[2].listlockunspent()) self.nodes[2].lockunspent(True, [unspent_0]) assert_equal(len(self.nodes[2].listlockunspent()), 0) |