From 42655f1cfcc7cf4ce4b87640a7c1404744491af3 Mon Sep 17 00:00:00 2001 From: tim Date: Fri, 19 Aug 2016 14:14:47 +0200 Subject: [PATCH] Fix test case --- test_transaction.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test_transaction.py b/test_transaction.py index d9b5f771..a270165e 100644 --- a/test_transaction.py +++ b/test_transaction.py @@ -310,6 +310,7 @@ def test_validate_tx_simple_signature(default_single_ffill, default_single_cond, from bigchaindb_common.crypto import SigningKey from bigchaindb_common.transaction import Transaction + tx = Transaction(Transaction.CREATE, [default_single_ffill], [default_single_cond]) expected = deepcopy(default_single_ffill) expected.fulfillment.sign(str(tx), SigningKey(user_priv)) @@ -329,14 +330,14 @@ def test_invoke_simple_signature_fulfillment_with_invalid_parameters(utx, defaul def test_invoke_threshold_signature_fulfillment_with_invalid_parameters(utx, default_threshold_ffill, user3_pub, - user3_priv): + user3_priv, user_pub_keys): from bigchaindb_common.exceptions import KeypairMismatchException + with raises(KeypairMismatchException): + utx._sign_threshold_signature_fulfillment(default_threshold_ffill, 'somemessage', {user3_pub: user3_priv}) with raises(KeypairMismatchException): default_threshold_ffill.owners_before = ['somewrongvalue'] utx._sign_threshold_signature_fulfillment(default_threshold_ffill, 'somemessage', None) - with raises(KeypairMismatchException): - utx._sign_threshold_signature_fulfillment(default_threshold_ffill, 'somemessage', [{user3_pub: user3_priv}]) def test_validate_fulfillment_with_invalid_parameters(utx):