mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Stub test for client.validate
This commit is contained in:
parent
40e70243a4
commit
73796c302f
@ -57,3 +57,11 @@ def test_client_can_transfer_assets(mock_requests_post, client):
|
|||||||
|
|
||||||
assert util.verify_signature(tx)
|
assert util.verify_signature(tx)
|
||||||
|
|
||||||
|
|
||||||
|
def test_client_can_validate_transaction(mock_requests_post, client):
|
||||||
|
from bigchaindb import util
|
||||||
|
|
||||||
|
assert client.validate({'valid': True,
|
||||||
|
'error': ''}) == (True, '')
|
||||||
|
assert client.validate({'valid': False,
|
||||||
|
'error': 'Some Error'}) == (False, 'Some Error')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user