Changeset View
Changeset View
Standalone View
Standalone View
test/functional/interface_rpc.py
Show All 19 Lines | except JSONRPCException as exc: | ||||
assert_equal(exc.error["code"], expected_rpc_code) | assert_equal(exc.error["code"], expected_rpc_code) | ||||
assert_equal(exc.http_status, expected_http_status) | assert_equal(exc.http_status, expected_http_status) | ||||
class RPCInterfaceTest(BitcoinTestFramework): | class RPCInterfaceTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.supports_cli = False | |||||
def test_getrpcinfo(self): | def test_getrpcinfo(self): | ||||
self.log.info("Testing getrpcinfo...") | self.log.info("Testing getrpcinfo...") | ||||
info = self.nodes[0].getrpcinfo() | info = self.nodes[0].getrpcinfo() | ||||
assert_equal(len(info['active_commands']), 1) | assert_equal(len(info['active_commands']), 1) | ||||
command = info['active_commands'][0] | command = info['active_commands'][0] | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |