Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_config_args.py
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | def test_config_file_parser(self): | ||||
':1 Section [testnet] is not recognized.') | ':1 Section [testnet] is not recognized.') | ||||
with open(inc_conf_file_path, 'w', encoding='utf-8') as conf: | with open(inc_conf_file_path, 'w', encoding='utf-8') as conf: | ||||
conf.write('') # clear | conf.write('') # clear | ||||
with open(inc_conf_file2_path, 'w', encoding='utf-8') as conf: | with open(inc_conf_file2_path, 'w', encoding='utf-8') as conf: | ||||
conf.write('') # clear | conf.write('') # clear | ||||
def test_log_buffer(self): | def test_log_buffer(self): | ||||
with self.nodes[0].assert_debug_log(expected_msgs=['Warning: parsed potentially confusing double-negative -connect=0']): | with self.nodes[0].assert_debug_log(expected_msgs=['Warning: parsed potentially confusing double-negative -connect=0\n']): | ||||
self.start_node(0, extra_args=['-noconnect=0']) | self.start_node(0, extra_args=['-noconnect=0']) | ||||
self.stop_node(0) | self.stop_node(0) | ||||
def test_args_log(self): | def test_args_log(self): | ||||
self.log.info('Test config args logging') | self.log.info('Test config args logging') | ||||
with self.nodes[0].assert_debug_log( | with self.nodes[0].assert_debug_log( | ||||
expected_msgs=[ | expected_msgs=[ | ||||
'Command-line arg: addnode="some.node"', | 'Command-line arg: addnode="some.node"', | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |