mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
test that transaction with no hash raises schema validation error
This commit is contained in:
parent
48a766400d
commit
860e7cda02
@ -51,6 +51,12 @@ def test_tx_serialization_with_incorrect_hash(create_tx):
|
|||||||
validate_raises(tx, InvalidHash)
|
validate_raises(tx, InvalidHash)
|
||||||
|
|
||||||
|
|
||||||
|
def test_tx_serialization_with_no_hash(create_tx):
|
||||||
|
tx = create_tx.to_dict()
|
||||||
|
del tx['id']
|
||||||
|
validate_raises(tx)
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Operation
|
# Operation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user