mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00

* Remove unused import * Simplify and group the imports * Add extra space (pep 8) * Remove NotImplementedError the class BaseConsensusRules implements verify_vote_signature * Add test module for consensus module
16 lines
418 B
Python
16 lines
418 B
Python
import pytest
|
|
|
|
|
|
class TestBaseConsensusRules(object):
|
|
|
|
def test_validate_transaction(self):
|
|
from bigchaindb.consensus import BaseConsensusRules
|
|
transaction = {
|
|
'transaction': {
|
|
'operation': None,
|
|
'fulfillments': None,
|
|
},
|
|
}
|
|
with pytest.raises(ValueError):
|
|
BaseConsensusRules.validate_transaction(None, transaction)
|