1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

tests/stellar: trezor core currently throws Firmware err

This commit is contained in:
Tomas Susanka 2018-06-13 13:40:58 +02:00
parent 015d72102d
commit ebe41c69f8
2 changed files with 12 additions and 4 deletions

View File

@ -49,5 +49,9 @@ class TestMsgStellarGetAddress(TrezorTest):
with pytest.raises(CallException) as exc:
self.client.stellar_get_address(parse_path('m/0/1'))
if TREZOR_VERSION == 1:
assert exc.value.args[0] == proto.FailureType.ProcessError
assert exc.value.args[1].endswith('Failed to derive private key')
else:
assert exc.value.args[0] == proto.FailureType.FirmwareError
assert exc.value.args[1].endswith('Firmware error')

View File

@ -41,5 +41,9 @@ class TestMsgStellarGetPublicKey(TrezorTest):
with pytest.raises(CallException) as exc:
self.client.stellar_get_public_key(parse_path('m/0/1'))
if TREZOR_VERSION == 1:
assert exc.value.args[0] == proto.FailureType.ProcessError
assert exc.value.args[1].endswith('Failed to derive private key')
else:
assert exc.value.args[0] == proto.FailureType.FirmwareError
assert exc.value.args[1].endswith('Firmware error')