def test_execute_calls_correct_functions_when_funded_and_time_to_broadcast( self, mock_has_funds, mock_get_last_block, mock_store, mock_should_broadcast, mock_create_l5, mock_broadcast, mock_broadcast_cleanup, mock_watch_for_funds, mock_confirmations, mock_backlog, mock_matchmaking, ): level_5_actions.execute() mock_has_funds.assert_called_once() mock_get_last_block.assert_called_once() mock_store.assert_called_once() mock_should_broadcast.assert_called_once() mock_create_l5.assert_called_once() mock_broadcast.assert_called_once() mock_broadcast_cleanup.assert_called_once() mock_watch_for_funds.assert_called_once() mock_confirmations.assert_called_once() mock_backlog.assert_called_once()
def test_execute_calls_correct_functions_when_out_of_funds( self, mock_has_funds, mock_is_time_to_watch, mock_watch, mock_confirmations, mock_matchmaking): level_5_actions.execute() mock_has_funds.assert_called_once() mock_is_time_to_watch.assert_called_once() mock_watch.assert_called_once() mock_confirmations.assert_called_once()
def test_execute_calls_correct_functions_when_funded_but_not_time_to_broadcast( self, mock_has_funds, mock_get_last_block, mock_store, mock_should_broadcast, mock_confirmations, mock_matchmaking): level_5_actions.execute() mock_has_funds.assert_called_once() mock_get_last_block.assert_called_once() mock_store.assert_called_once() mock_should_broadcast.assert_called_once() mock_confirmations.assert_called_once()