MCPcopy
hub / github.com/bigchaindb/bigchaindb / test_low_amounts

Function test_low_amounts

tests/validation/test_transaction_structure.py:182–191  ·  view source on GitHub ↗
(b, user_sk, create_tx, signed_transfer_tx, alice)

Source from the content-addressed store, hash-verified

180# Outputs
181
182def test_low_amounts(b, user_sk, create_tx, signed_transfer_tx, alice):
183 for sk, tx in [(alice.private_key, create_tx), (user_sk, signed_transfer_tx)]:
184 tx.outputs[0].amount = 0
185 tx._id = None
186 tx.sign([sk])
187 validate_raises(tx, AmountError)
188 tx.outputs[0].amount = -1
189 tx._id = None
190 tx.sign([sk])
191 validate_raises(tx)
192
193
194def test_high_amounts(b, create_tx, alice):

Callers

nothing calls this directly

Calls 2

validate_raisesFunction · 0.85
signMethod · 0.80

Tested by

no test coverage detected