mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
13 lines
404 B
Python
13 lines
404 B
Python
from bigchaindb import util
|
|
|
|
|
|
def test_transform_create(b, user_private_key, user_public_key):
|
|
tx = util.create_tx(user_public_key, user_public_key, None, 'CREATE')
|
|
tx = util.transform_create(tx)
|
|
tx = util.sign_tx(tx, b.me_private)
|
|
|
|
assert tx['transaction']['current_owners'] == [b.me]
|
|
assert tx['transaction']['new_owners'] == [user_public_key]
|
|
assert util.verify_signature(tx)
|
|
|