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

tests: add check that backup succeeded

This commit is contained in:
matejcik 2019-09-20 18:06:02 +02:00
parent 03f1403c93
commit 25f5dd8bdd

View File

@ -60,6 +60,8 @@ def test_backup_bip39(client):
device.backup(client)
assert mnemonic == MNEMONIC12
client.init_device()
assert client.features.needs_backup is False
@pytest.mark.skip_t1
@ -115,6 +117,9 @@ def test_backup_slip39_basic(client):
)
device.backup(client)
client.init_device()
assert client.features.needs_backup is False
expected_ms = shamir.combine_mnemonics(MNEMONIC_SLIP39_BASIC_20_3of6)
actual_ms = shamir.combine_mnemonics(mnemonics[:3])
assert expected_ms == actual_ms