MCPcopy Create free account
hub / github.com/ElementsProject/elements / run_test

Method run_test

test/functional/rpc_generate.py:18–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.num_nodes = 1
17
18 def run_test(self):
19 message = (
20 "generate\n\n"
21 "has been replaced by the -generate "
22 "cli option. Refer to -help for more information.\n"
23 )
24
25 self.log.info("Test rpc generate raises with message to use cli option")
26 assert_raises_rpc_error(-32601, message, self.nodes[0].rpc.generate)
27
28 self.log.info("Test rpc generate help prints message to use cli option")
29 assert_equal(message, self.nodes[0].help("generate"))
30
31 self.log.info("Test rpc generate is a hidden command not discoverable in general help")
32 assert message not in self.nodes[0].help()
33
34
35if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

assert_raises_rpc_errorFunction · 0.90
assert_equalFunction · 0.90
infoMethod · 0.80
helpMethod · 0.80

Tested by

no test coverage detected