From bb5e49e4528b359bbd61a4149db58620362cd05a Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 24 May 2018 17:02:11 +0200 Subject: [PATCH] device_tests: fix failed test --- trezorlib/tests/device_tests/test_msg_signtx_bcash.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trezorlib/tests/device_tests/test_msg_signtx_bcash.py b/trezorlib/tests/device_tests/test_msg_signtx_bcash.py index 9399be5de9..4b280deb6c 100644 --- a/trezorlib/tests/device_tests/test_msg_signtx_bcash.py +++ b/trezorlib/tests/device_tests/test_msg_signtx_bcash.py @@ -224,9 +224,10 @@ class TestMsgSigntxBch(TrezorTest): with pytest.raises(CallException) as exc: self.client.sign_tx('Bcash', [inp1, inp2], [out1], debug_processor=attack_processor) - assert exc.value.args[0] == proto.FailureType.DataError + assert exc.value.args[0] in (proto.FailureType.ProcessError, proto.FailureType.DataError) assert exc.value.args[1].endswith('Transaction has changed during signing') + def test_attack_change_input(self): self.setup_mnemonic_allallall() self.client.set_tx_api(TxApiBcash)