/// Issues a manage_neuron command to register a vote, and asserts that it
/// worked.
Issues a manage_neuron command to register a vote, and asserts that it
worked.
Issues a manage_neuron command to register a vote and asserts that it worked .
fn register_vote_assert_success(
    governance: &mut Governance,
    caller: PrincipalId,
    neuron_id: NeuronId,
    pid: ProposalId,
    vote: Vote,
) {
    let result = register_vote(governance, caller, neuron_id, pid, vote);
    assert_eq!(
        result,
        ManageNeuronResponse {
            command: Some(manage_neuron_response::Command::RegisterVote(
                manage_neuron_response::RegisterVoteResponse {}
            ))
        }
    );
}
fn register_vote_assert_success ( governance : & mut Governance , caller : PrincipalId , neuron_id : NeuronId , pid : ProposalId , vote : Vote , ) { let result = register_vote ( governance , caller , neuron_id , pid , vote ) ; assert_eq ! ( result ManageNeuronResponse { command Some ( manage_neuron_response Command RegisterVote ( manage_neuron_response RegisterVoteResponse { } ) ) } ) ; }
Issues a manage_neuron command to register a vote, and asserts that it
worked.
Issues a manage_neuron command to register a vote and asserts that it worked .
governance
&mut Governance
caller
PrincipalId
neuron_id
NeuronId
pid
ProposalId
vote
Vote