mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
restore accidentally deleted tests
This commit is contained in:
parent
2f4da6a32f
commit
b20a770b02
@ -375,6 +375,8 @@ def test_tx_serialization_with_incorrect_hash(utx):
|
|||||||
def test_invalid_input_initialization(user_input, user_pub):
|
def test_invalid_input_initialization(user_input, user_pub):
|
||||||
from bigchaindb.common.transaction import Input
|
from bigchaindb.common.transaction import Input
|
||||||
|
|
||||||
|
with raises(TypeError):
|
||||||
|
Input(user_input, user_pub)
|
||||||
with raises(TypeError):
|
with raises(TypeError):
|
||||||
Input(user_input, tx_input='somethingthatiswrong')
|
Input(user_input, tx_input='somethingthatiswrong')
|
||||||
|
|
||||||
@ -600,6 +602,12 @@ def test_sign_threshold_with_invalid_params(utx, user_user2_threshold_input,
|
|||||||
0,
|
0,
|
||||||
'somemessage',
|
'somemessage',
|
||||||
{user3_pub: user3_priv})
|
{user3_pub: user3_priv})
|
||||||
|
with raises(KeypairMismatchException):
|
||||||
|
user_user2_threshold_input.owners_before = ['somewrongvalue']
|
||||||
|
utx._sign_threshold_signature_fulfillment(user_user2_threshold_input,
|
||||||
|
0,
|
||||||
|
'somemessage',
|
||||||
|
None)
|
||||||
|
|
||||||
|
|
||||||
def test_validate_input_with_invalid_parameters(utx):
|
def test_validate_input_with_invalid_parameters(utx):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user