MCPcopy
hub / github.com/bigchaindb/bigchaindb / validate

Function validate

tests/validation/test_transaction_structure.py:28–31  ·  view source on GitHub ↗
(tx)

Source from the content-addressed store, hash-verified

26
27
28def validate(tx):
29 if isinstance(tx, Transaction):
30 tx = tx.to_dict()
31 Transaction.from_dict(tx)
32
33
34def validate_raises(tx, exc=SchemaValidationError):

Callers 5

validate_raisesFunction · 0.70
test_high_amountsFunction · 0.70
test_validate_versionFunction · 0.70

Calls 2

to_dictMethod · 0.45
from_dictMethod · 0.45

Tested by

no test coverage detected