mirror of
https://github.com/planetmint/planetmint.git
synced 2025-06-07 14:46:38 +00:00
10 lines
458 B
Python
10 lines
458 B
Python
from planetmint.transactions.types.elections.chain_migration_election import ChainMigrationElection
|
|
|
|
|
|
def test_valid_migration_election(b_mock, node_key):
|
|
voters = ChainMigrationElection.recipients(b_mock)
|
|
election = ChainMigrationElection.generate([node_key.public_key],
|
|
voters,
|
|
{}, None).sign([node_key.private_key])
|
|
assert election.validate(b_mock)
|