1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-09 06:50:58 +00:00

tests: add test in resetdevice for combination of display_random and skip_backup

This commit is contained in:
Pavol Rusnak 2018-10-11 15:29:30 +02:00
parent a1ba9db744
commit 16d9d58ee1
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -147,3 +147,17 @@ class TestMsgResetDeviceSkipbackup(TrezorTest):
self.setup_mnemonic_nopin_nopassphrase()
ret = self.client.call_raw(proto.BackupDevice())
assert isinstance(ret, proto.Failure)
def test_reset_device_skip_backup_show_entropy_fail(self):
ret = self.client.call_raw(
proto.ResetDevice(
display_random=True,
strength=self.strength,
passphrase_protection=False,
pin_protection=False,
language="english",
label="test",
skip_backup=True,
)
)
assert isinstance(ret, proto.Failure)