aboutsummaryrefslogtreecommitdiff
path: root/test/functional/rpc_misc.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-05-02 16:48:05 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-05-15 14:27:18 -0400
commitfad0ce59e9154f9b7e61907a71c740a942c60282 (patch)
tree699633db7e46fe8bedb820efc8ad01354abfc559 /test/functional/rpc_misc.py
parent65526fc8666fef35ef908dbc225f706bef642c7e (diff)
tests: Fail if RPC has been added without tests
Diffstat (limited to 'test/functional/rpc_misc.py')
-rwxr-xr-xtest/functional/rpc_misc.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/rpc_misc.py b/test/functional/rpc_misc.py
index 7bf8e68176..8a3f8c6f06 100755
--- a/test/functional/rpc_misc.py
+++ b/test/functional/rpc_misc.py
@@ -46,5 +46,13 @@ class RpcMiscTest(BitcoinTestFramework):
assert_raises_rpc_error(-8, "unknown mode foobar", node.getmemoryinfo, mode="foobar")
+ self.log.info("test logging")
+ assert_equal(node.logging()['qt'], True)
+ node.logging(exclude=['qt'])
+ assert_equal(node.logging()['qt'], False)
+ node.logging(include=['qt'])
+ assert_equal(node.logging()['qt'], True)
+
+
if __name__ == '__main__':
RpcMiscTest().main()