From 25f5dd8bdd0999407bab4470ca89c9db051cb849 Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 20 Sep 2019 18:06:02 +0200 Subject: [PATCH] tests: add check that backup succeeded --- tests/device_tests/test_msg_backup_device.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/device_tests/test_msg_backup_device.py b/tests/device_tests/test_msg_backup_device.py index 3a2685a38c..ae85ebab3e 100644 --- a/tests/device_tests/test_msg_backup_device.py +++ b/tests/device_tests/test_msg_backup_device.py @@ -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