1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 03:18:20 +00:00

device_tests: fix failed test

This commit is contained in:
Pavol Rusnak 2018-05-24 17:02:11 +02:00
parent b67322be2f
commit bb5e49e452
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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)