test that transaction with no hash raises schema validation error

This commit is contained in:
Scott Sadler 2017-03-15 14:32:54 +01:00
parent 48a766400d
commit 860e7cda02
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ def test_tx_serialization_with_incorrect_hash(create_tx):
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