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

Method test_default_asmap

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

Source from the content-addressed store, hash-verified

72 os.remove(filename)
73
74 def test_default_asmap(self):
75 shutil.copyfile(self.asmap_raw, self.default_asmap)
76 for arg in ['-asmap', '-asmap=']:
77 self.log.info(f'Test bitcoind {arg} (using default map file)')
78 self.stop_node(0)
79 with self.node.assert_debug_log(expected_messages(self.default_asmap)):
80 self.start_node(0, [arg])
81 os.remove(self.default_asmap)
82
83 def test_asmap_interaction_with_addrman_containing_entries(self):
84 self.log.info("Test bitcoind -asmap restart with addrman containing new and tried entries")

Callers 1

run_testMethod · 0.95

Calls 6

expected_messagesFunction · 0.85
infoMethod · 0.80
stop_nodeMethod · 0.45
assert_debug_logMethod · 0.45
start_nodeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected