diff --git a/trezorlib/tests/device_tests/test_debuglink.py b/trezorlib/tests/device_tests/test_debuglink.py index deadfc183..4a91fdfaf 100644 --- a/trezorlib/tests/device_tests/test_debuglink.py +++ b/trezorlib/tests/device_tests/test_debuglink.py @@ -29,8 +29,8 @@ class TestDebuglink(TrezorTest): def test_mnemonic(self): self.setup_mnemonic_nopin_nopassphrase(lock=False) - mnemonic = self.client.debug.state().mnemonic - assert mnemonic == self.mnemonic12 + mnemonic = self.client.debug.state().mnemonic_secret + assert mnemonic == self.mnemonic12.encode() def test_pin(self): self.setup_mnemonic_pin_passphrase() diff --git a/trezorlib/tests/device_tests/test_msg_loaddevice.py b/trezorlib/tests/device_tests/test_msg_loaddevice.py index e3e283972..ed178c146 100644 --- a/trezorlib/tests/device_tests/test_msg_loaddevice.py +++ b/trezorlib/tests/device_tests/test_msg_loaddevice.py @@ -26,7 +26,7 @@ class TestDeviceLoad(TrezorTest): def test_load_device_1(self): self.setup_mnemonic_nopin_nopassphrase(lock=False) state = self.client.debug.state() - assert state.mnemonic == self.mnemonic12 + assert state.mnemonic_secret == self.mnemonic12.encode() assert state.pin is None assert state.passphrase_protection is False @@ -37,7 +37,7 @@ class TestDeviceLoad(TrezorTest): self.setup_mnemonic_pin_passphrase(lock=False) self.client.set_passphrase("passphrase") state = self.client.debug.state() - assert state.mnemonic == self.mnemonic12 + assert state.mnemonic_secret == self.mnemonic12.encode() assert state.pin == self.pin4 assert state.passphrase_protection is True diff --git a/trezorlib/tests/device_tests/test_msg_recoverydevice.py b/trezorlib/tests/device_tests/test_msg_recoverydevice.py index c52a80624..342c238d1 100644 --- a/trezorlib/tests/device_tests/test_msg_recoverydevice.py +++ b/trezorlib/tests/device_tests/test_msg_recoverydevice.py @@ -75,7 +75,7 @@ class TestMsgRecoverydevice(TrezorTest): # Mnemonic is the same self.client.init_device() - assert self.client.debug.read_mnemonic() == self.mnemonic12 + assert self.client.debug.read_mnemonic_secret() == self.mnemonic12.encode() assert self.client.features.pin_protection is True assert self.client.features.passphrase_protection is True @@ -126,7 +126,7 @@ class TestMsgRecoverydevice(TrezorTest): # Mnemonic is the same self.client.init_device() - assert self.client.debug.read_mnemonic() == self.mnemonic12 + assert self.client.debug.read_mnemonic_secret() == self.mnemonic12.encode() assert self.client.features.pin_protection is False assert self.client.features.passphrase_protection is False