mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 14:35:45 +00:00
8 lines
360 B
Python
8 lines
360 B
Python
from planetmint.transactions.types.elections.chain_migration_election import ChainMigrationElection
|
|
|
|
|
|
def test_valid_migration_election(b_mock, node_key):
|
|
voters = b_mock.get_recipients_list()
|
|
election = ChainMigrationElection.generate([node_key.public_key], voters, {}, None).sign([node_key.private_key])
|
|
assert b_mock.validate_election(election)
|