diff options
Diffstat (limited to 'test/functional/wallet_labels.py')
-rwxr-xr-x | test/functional/wallet_labels.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/wallet_labels.py b/test/functional/wallet_labels.py index a39700f73a..f074339a2b 100755 --- a/test/functional/wallet_labels.py +++ b/test/functional/wallet_labels.py @@ -71,6 +71,10 @@ class WalletLabelsTest(BitcoinTestFramework): node = self.nodes[0] assert_equal(len(node.listunspent()), 0) + self.log.info("Checking listlabels' invalid parameters") + assert_raises_rpc_error(-8, "Invalid 'purpose' argument, must be a known purpose string, typically 'send', or 'receive'.", node.listlabels, "notavalidpurpose") + assert_raises_rpc_error(-8, "Invalid 'purpose' argument, must be a known purpose string, typically 'send', or 'receive'.", node.listlabels, "unknown") + # Note each time we call generate, all generated coins go into # the same address, so we call twice to get two addresses w/50 each self.generatetoaddress(node, nblocks=1, address=node.getnewaddress(label='coinbase')) |