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

Method test_empty_asmap

test/functional/feature_asmap.py:105–112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

103 self.node.assert_start_raises_init_error(extra_args=['-asmap'], expected_msg=msg)
104
105 def test_empty_asmap(self):
106 self.log.info('Test bitcoind -asmap with empty map file')
107 self.stop_node(0)
108 with open(self.default_asmap, "w", encoding="utf-8") as f:
109 f.write("")
110 msg = f"Error: Could not parse asmap file \"{self.default_asmap}\""
111 self.node.assert_start_raises_init_error(extra_args=['-asmap'], expected_msg=msg)
112 os.remove(self.default_asmap)
113
114 def run_test(self):
115 self.node = self.nodes[0]

Callers 1

run_testMethod · 0.95

Calls 5

infoMethod · 0.80
stop_nodeMethod · 0.45
writeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected