(b)
| 82 | |
| 83 | |
| 84 | def test_validation_error(b): |
| 85 | from bigchaindb.models import Transaction |
| 86 | from bigchaindb.common.crypto import generate_key_pair |
| 87 | |
| 88 | alice = generate_key_pair() |
| 89 | tx = Transaction.create([alice.public_key], |
| 90 | [([alice.public_key], 1)], |
| 91 | asset=None)\ |
| 92 | .sign([alice.private_key]).to_dict() |
| 93 | |
| 94 | tx['metadata'] = '' |
| 95 | assert not b.validate_transaction(tx) |
| 96 | |
| 97 | |
| 98 | @patch('requests.post') |
nothing calls this directly
no test coverage detected