Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_labels.py
Show All 25 Lines | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.extra_args = [['-deprecatedrpc=accounts'], []] | self.extra_args = [['-deprecatedrpc=accounts'], []] | ||||
def setup_network(self): | def setup_network(self): | ||||
"""Don't connect nodes.""" | """Don't connect nodes.""" | ||||
self.setup_nodes() | self.setup_nodes() | ||||
def skip_test_if_missing_module(self): | |||||
self.skip_if_no_wallet() | |||||
def run_test(self): | def run_test(self): | ||||
"""Run the test twice - once using the accounts API and once using the labels API.""" | """Run the test twice - once using the accounts API and once using the labels API.""" | ||||
self.log.info("Test accounts API") | self.log.info("Test accounts API") | ||||
self._run_subtest(True, self.nodes[0]) | self._run_subtest(True, self.nodes[0]) | ||||
self.log.info("Test labels API") | self.log.info("Test labels API") | ||||
self._run_subtest(False, self.nodes[1]) | self._run_subtest(False, self.nodes[1]) | ||||
def _run_subtest(self, accounts_api, node): | def _run_subtest(self, accounts_api, node): | ||||
▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines |