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

Method get_node_output

test/functional/feature_help.py:19–35  ·  view source on GitHub ↗
(self, *, ret_code_expected)

Source from the content-addressed store, hash-verified

17 # Don't start the node
18
19 def get_node_output(self, *, ret_code_expected):
20 ret_code = self.nodes[0].process.wait(timeout=60)
21 assert_equal(ret_code, ret_code_expected)
22 self.nodes[0].stdout.seek(0)
23 self.nodes[0].stderr.seek(0)
24 out = self.nodes[0].stdout.read()
25 err = self.nodes[0].stderr.read()
26 self.nodes[0].stdout.close()
27 self.nodes[0].stderr.close()
28
29 # Clean up TestNode state
30 self.nodes[0].running = False
31 self.nodes[0].process = None
32 self.nodes[0].rpc_connected = False
33 self.nodes[0].rpc = None
34
35 return out, err
36
37 def run_test(self):
38 self.log.info("Start bitcoin with -h for help text")

Callers 1

run_testMethod · 0.95

Calls 5

assert_equalFunction · 0.90
waitMethod · 0.80
seekMethod · 0.45
readMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected