diff options
author | kevkevin <oapallikunnel@gmail.com> | 2023-04-12 10:54:32 -0500 |
---|---|---|
committer | kevkevin <oapallikunnel@gmail.com> | 2023-05-02 06:46:45 -0500 |
commit | 24d55fb9cfab88f546df35be5c0069b9b645438c (patch) | |
tree | 2cd4a7018712dd78d06723590d4e024cbdd65409 | |
parent | 7f4ab67e7be615b2425a85fb65872fc2327f58c3 (diff) |
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.
-rwxr-xr-x | test/functional/rpc_scantxoutset.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/rpc_scantxoutset.py b/test/functional/rpc_scantxoutset.py index dca965aacb..f97636aae7 100755 --- a/test/functional/rpc_scantxoutset.py +++ b/test/functional/rpc_scantxoutset.py @@ -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() |