def run_test(self):
    message = 'generate\nhas been replaced by the -generate cli option. Refer to -help for more information.'
    self.log.info('Test rpc generate raises with message to use cli option')
    assert_raises_rpc_error((- 32601), message, self.nodes[0].rpc.generate)
    self.log.info('Test rpc generate help prints message to use cli option')
    assert_equal(message, self.nodes[0].help('generate'))
    self.log.info('Test rpc generate is a hidden command not discoverable in general help')
    assert (message not in self.nodes[0].help())
def run_test(self):
    message = 'generate\nhas been replaced by the -generate cli option. Refer to -help for more information.'
    self.log.info('Test rpc generate raises with message to use cli option')
    assert_raises_rpc_error((- 32601), message, self.nodes[0].rpc.generate)
    self.log.info('Test rpc generate help prints message to use cli option')
    assert_equal(message, self.nodes[0].help('generate'))
    self.log.info('Test rpc generate is a hidden command not discoverable in general help')
    assert (message not in self.nodes[0].help())