Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_config_args.py
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | def test_config_file_parser(self): | ||||
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('[testnet]\n') | conf.write('[testnet]\n') | ||||
self.restart_node(0) | self.restart_node(0) | ||||
self.nodes[0].stop_node( | self.nodes[0].stop_node( | ||||
expected_stderr='Warning: ' + | expected_stderr='Warning: ' + | ||||
inc_conf_file_path + | inc_conf_file_path + | ||||
':1 Section [testnot] is not recognized.' + | ':1 Section [testnot] is not recognized.' + | ||||
os.linesep + | os.linesep + | ||||
'Warning: ' + | |||||
inc_conf_file2_path + | inc_conf_file2_path + | ||||
':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 | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |