mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
14 lines
356 B
Python
14 lines
356 B
Python
from pytest import raises
|
|
|
|
from bigchaindb.common.exceptions import SchemaValidationError
|
|
from bigchaindb.common.schema import validate_vote_schema
|
|
|
|
|
|
def test_validate_vote(structurally_valid_vote):
|
|
validate_vote_schema(structurally_valid_vote)
|
|
|
|
|
|
def test_validate_vote_fails():
|
|
with raises(SchemaValidationError):
|
|
validate_vote_schema({})
|