|
|
@ -19,7 +19,7 @@ import pytest
|
|
|
|
from ..common import MNEMONIC_SLIP39_BASIC_20_3of6, get_test_address
|
|
|
|
from ..common import MNEMONIC_SLIP39_BASIC_20_3of6, get_test_address
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.setup_client(mnemonic=MNEMONIC_SLIP39_BASIC_20_3of6, passphrase=True)
|
|
|
|
@pytest.mark.setup_client(mnemonic=MNEMONIC_SLIP39_BASIC_20_3of6, passphrase="TREZOR")
|
|
|
|
@pytest.mark.skip_t1
|
|
|
|
@pytest.mark.skip_t1
|
|
|
|
def test_3of6_passphrase(client):
|
|
|
|
def test_3of6_passphrase(client):
|
|
|
|
"""
|
|
|
|
"""
|
|
|
@ -28,7 +28,6 @@ def test_3of6_passphrase(client):
|
|
|
|
xprv9s21ZrQH143K2pMWi8jrTawHaj16uKk4CSbvo4Zt61tcrmuUDMx2o1Byzcr3saXNGNvHP8zZgXVdJHsXVdzYFPavxvCyaGyGr1WkAYG83ce
|
|
|
|
xprv9s21ZrQH143K2pMWi8jrTawHaj16uKk4CSbvo4Zt61tcrmuUDMx2o1Byzcr3saXNGNvHP8zZgXVdJHsXVdzYFPavxvCyaGyGr1WkAYG83ce
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
assert client.features.passphrase_protection is True
|
|
|
|
assert client.features.passphrase_protection is True
|
|
|
|
client.use_passphrase("TREZOR")
|
|
|
|
|
|
|
|
address = get_test_address(client)
|
|
|
|
address = get_test_address(client)
|
|
|
|
assert address == "mi4HXfRJAqCDyEdet5veunBvXLTKSxpuim"
|
|
|
|
assert address == "mi4HXfRJAqCDyEdet5veunBvXLTKSxpuim"
|
|
|
|
|
|
|
|
|
|
|
@ -38,7 +37,7 @@ def test_3of6_passphrase(client):
|
|
|
|
"hobo romp academic axis august founder knife legal recover alien expect emphasis loan kitchen involve teacher capture rebuild trial numb spider forward ladle lying voter typical security quantity hawk legs idle leaves gasoline",
|
|
|
|
"hobo romp academic axis august founder knife legal recover alien expect emphasis loan kitchen involve teacher capture rebuild trial numb spider forward ladle lying voter typical security quantity hawk legs idle leaves gasoline",
|
|
|
|
"hobo romp academic agency ancestor industry argue sister scene midst graduate profile numb paid headset airport daisy flame express scene usual welcome quick silent downtown oral critical step remove says rhythm venture aunt",
|
|
|
|
"hobo romp academic agency ancestor industry argue sister scene midst graduate profile numb paid headset airport daisy flame express scene usual welcome quick silent downtown oral critical step remove says rhythm venture aunt",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
passphrase=True,
|
|
|
|
passphrase="TREZOR",
|
|
|
|
)
|
|
|
|
)
|
|
|
|
@pytest.mark.skip_t1
|
|
|
|
@pytest.mark.skip_t1
|
|
|
|
def test_2of5_passphrase(client):
|
|
|
|
def test_2of5_passphrase(client):
|
|
|
@ -48,6 +47,5 @@ def test_2of5_passphrase(client):
|
|
|
|
xprv9s21ZrQH143K2o6EXEHpVy8TCYoMmkBnDCCESLdR2ieKwmcNG48ck2XJQY4waS7RUQcXqR9N7HnQbUVEDMWYyREdF1idQqxFHuCfK7fqFni
|
|
|
|
xprv9s21ZrQH143K2o6EXEHpVy8TCYoMmkBnDCCESLdR2ieKwmcNG48ck2XJQY4waS7RUQcXqR9N7HnQbUVEDMWYyREdF1idQqxFHuCfK7fqFni
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
assert client.features.passphrase_protection is True
|
|
|
|
assert client.features.passphrase_protection is True
|
|
|
|
client.use_passphrase("TREZOR")
|
|
|
|
|
|
|
|
address = get_test_address(client)
|
|
|
|
address = get_test_address(client)
|
|
|
|
assert address == "mjXH4pN7TtbHp3tWLqVKktKuaQeByHMoBZ"
|
|
|
|
assert address == "mjXH4pN7TtbHp3tWLqVKktKuaQeByHMoBZ"
|
|
|
|