tests: Fail if RPC has been added without tests

This commit is contained in:
MarcoFalke
2019-05-02 16:48:05 -04:00
parent 65526fc866
commit fad0ce59e9
4 changed files with 16 additions and 3 deletions

View File

@@ -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()