[bitshares/bitshares-core] Refactor cli_test #1192 (#1243)

cogutvalera commented on this pull request.

> + try
+ {
+ BOOST_TEST_MESSAGE(«Cli Vote Test for 2 Witnesses»);
+
+ account_object nathan_acct_before_upgrade, nathan_acct_after_upgrade;
+ std::vector import_txs;
+ signed_transaction upgrade_tx, transfer_tx;
+
+ BOOST_TEST_MESSAGE(«Importing nathan’s balance»);
+ import_txs = con->wallet_api_ptr->import_balance(«nathan», nathan_keys, true);
+ nathan_acct_before_upgrade = con->wallet_api_ptr->get_account(«nathan»);
+
+ // upgrade nathan
+ BOOST_TEST_MESSAGE(«Upgrading Nathan to LTM»);
+ upgrade_tx = con->wallet_api_ptr->upgrade_account(«nathan», true);
+ nathan_acct_after_upgrade = con->wallet_api_ptr->get_account(«nathan»);

will do it soon