mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
fix tests for multisig
This commit is contained in:
parent
90ab22047a
commit
3d423ba44b
@ -81,7 +81,7 @@ class TestBigchainApi(object):
|
|||||||
tx = b.create_transaction(vk, 'b', 'c', 'd')
|
tx = b.create_transaction(vk, 'b', 'c', 'd')
|
||||||
tx_signed = b.sign_transaction(tx, sk)
|
tx_signed = b.sign_transaction(tx, sk)
|
||||||
|
|
||||||
assert 'signature' in tx_signed
|
assert 'signatures' in tx_signed
|
||||||
assert b.verify_signature(tx_signed)
|
assert b.verify_signature(tx_signed)
|
||||||
|
|
||||||
def test_serializer(self, b):
|
def test_serializer(self, b):
|
||||||
@ -289,7 +289,7 @@ class TestTransactionValidation(object):
|
|||||||
with pytest.raises(exceptions.TransactionOwnerError) as excinfo:
|
with pytest.raises(exceptions.TransactionOwnerError) as excinfo:
|
||||||
b.validate_transaction(tx)
|
b.validate_transaction(tx)
|
||||||
|
|
||||||
assert excinfo.value.args[0] == 'current_owner `a` does not own the input `{}`'.format(valid_input)
|
assert excinfo.value.args[0] == 'current_owner `[\'a\']` does not own the input `{}`'.format(valid_input)
|
||||||
assert b.is_valid_transaction(tx) is False
|
assert b.is_valid_transaction(tx) is False
|
||||||
|
|
||||||
@pytest.mark.usefixtures('inputs')
|
@pytest.mark.usefixtures('inputs')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user