def test_TR_IN_010_005(self, new_genesis_env, clients_consensus): genesis = from_dict(data_class=Genesis, data=new_genesis_env.genesis_config) genesis.economicModel.gov.paramProposalVoteDurationSeconds = 0 new_genesis_env.set_genesis(genesis.to_dict()) new_genesis_env.deploy_all() pip = clients_consensus[0].pip submitppandvote(clients_consensus[0:-1], 1, 2, 3) proposalinfo = clients_consensus[ 0].pip.get_effect_proposal_info_of_vote( clients_consensus[0].pip.cfg.param_proposal) log.info('Param proposal information {}'.format(proposalinfo)) log.info('listparam {}'.format( clients_consensus[0].pip.pip.listGovernParam())) result = pip.pip.getTallyResult(proposalinfo.get('ProposalID')) log.info('Interface getTallyResult info : {}'.format(result)) assert_code(result, 302030) wait_block_number(pip.node, proposalinfo.get('EndVotingBlock')) assert pip.get_canceledby_of_proposal( proposalinfo.get('ProposalID')) == cancelby assert pip.get_status_of_proposal(proposalinfo.get('ProposalID')) == 3 assert pip.get_yeas_of_proposal(proposalinfo.get('ProposalID')) == 1 assert pip.get_nays_of_proposal(proposalinfo.get('ProposalID')) == 1 assert pip.get_abstentions_of_proposal( proposalinfo.get('ProposalID')) == 1 assert pip.get_accu_verifiers_of_proposal( proposalinfo.get('ProposalID')) == len(clients_consensus)
def test_UP_PA_007(self, new_genesis_env, clients_consensus): update_setting_rate(new_genesis_env, 3, 0, 3320, 7500) submitppandvote(clients_consensus[:3], 1, 2, 3) verify_proposal_status(clients_consensus, proposaltype=3, status=3)