list_sons test
This commit is contained in:
parent
c52127c2df
commit
41795294af
1 changed files with 20 additions and 0 deletions
|
|
@ -1025,6 +1025,26 @@ BOOST_FIXTURE_TEST_CASE( select_top_fifteen_sons, cli_fixture )
|
|||
BOOST_TEST_MESSAGE("SON cli wallet tests end");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( list_son )
|
||||
{
|
||||
BOOST_TEST_MESSAGE("List SONs cli wallet tests begin");
|
||||
try
|
||||
{
|
||||
INVOKE(create_sons);
|
||||
|
||||
auto res = con.wallet_api_ptr->list_sons("", 100);
|
||||
BOOST_REQUIRE(res.size() == 2);
|
||||
BOOST_CHECK(res.find("son1account") != res.end());
|
||||
BOOST_CHECK(res.find("son2account") != res.end());
|
||||
|
||||
} catch( fc::exception& e ) {
|
||||
BOOST_TEST_MESSAGE("SON cli wallet tests exception");
|
||||
edump((e.to_detail_string()));
|
||||
throw;
|
||||
}
|
||||
BOOST_TEST_MESSAGE("List SONs cli wallet tests end");
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( update_son_votes_test )
|
||||
{
|
||||
BOOST_TEST_MESSAGE("SON update_son_votes cli wallet tests begin");
|
||||
|
|
|
|||
Loading…
Reference in a new issue