mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Solution: - wrote a test for valid elections - refactored some fixtures to make it easier to share between `migration` and `upsert-validator` tests
10 lines
409 B
Python
10 lines
409 B
Python
from bigchaindb.migrations.migration_election import MigrationElection
|
|
|
|
|
|
def test_valid_migration_election(b_mock, node_key):
|
|
voters = MigrationElection.recipients(b_mock)
|
|
election = MigrationElection.generate([node_key.public_key],
|
|
voters,
|
|
{}, None).sign([node_key.private_key])
|
|
assert election.validate(b_mock)
|