mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
test: added coverage to rpc_scantxoutset.py
Included a test that checks if an invalid first argument is entered we receive a rpc error. The rpc should fail if "start", "status" or "abort" is not the first command.
This commit is contained in:
parent
7f4ab67e7b
commit
24d55fb9cf
1 changed files with 3 additions and 0 deletions
|
@ -123,6 +123,9 @@ class ScantxoutsetTest(BitcoinTestFramework):
|
|||
# Check that second arg is needed for start
|
||||
assert_raises_rpc_error(-1, "scanobjects argument is required for the start action", self.nodes[0].scantxoutset, "start")
|
||||
|
||||
# Check that invalid command give error
|
||||
assert_raises_rpc_error(-8, "Invalid action 'invalid_command'", self.nodes[0].scantxoutset, "invalid_command")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
ScantxoutsetTest().main()
|
||||
|
|
Loading…
Add table
Reference in a new issue