MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / test_getrpcinfo

Method test_getrpcinfo

test/functional/interface_rpc.py:97–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95 self.supports_cli = False
96
97 def test_getrpcinfo(self):
98 self.log.info("Testing getrpcinfo...")
99
100 info = self.nodes[0].getrpcinfo()
101 assert_equal(len(info['active_commands']), 1)
102
103 command = info['active_commands'][0]
104 assert_equal(command['method'], 'getrpcinfo')
105 assert_greater_than_or_equal(command['duration'], 0)
106 assert_equal(info['logpath'], os.path.join(self.nodes[0].chain_path, 'debug.log'))
107
108 def test_batch_request(self, call_options):
109 calls = [

Callers 1

run_testMethod · 0.95

Calls 4

assert_equalFunction · 0.90
infoMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected