1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +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: with pytest.raises(CallException) as exc:
self.client.sign_tx('Bcash', [inp1, inp2], [out1], debug_processor=attack_processor) 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') assert exc.value.args[1].endswith('Transaction has changed during signing')
def test_attack_change_input(self): def test_attack_change_input(self):
self.setup_mnemonic_allallall() self.setup_mnemonic_allallall()
self.client.set_tx_api(TxApiBcash) self.client.set_tx_api(TxApiBcash)