1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

stellar: update T1 tests

This commit is contained in:
matejcik 2018-06-28 12:40:49 +02:00
parent b2f35de8b8
commit ad16588171
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ class TestMsgStellarGetAddress(TrezorTest):
# GAK5MSF74TJW6GLM7NLTL76YZJKM2S4CGP3UH4REJHPHZ4YBZW2GSBPW
address = self.client.stellar_get_address(parse_path(stellar.DEFAULT_BIP32_PATH))
assert stellar.address_from_public_key(pubkey).decode('utf8') == address
assert stellar.address_from_public_key(pubkey) == address
def test_stellar_get_address_fail(self):
self.setup_mnemonic_nopin_nopassphrase()

View File

@ -35,7 +35,7 @@ class TestMsgStellarGetPublicKey(TrezorTest):
# GAK5MSF74TJW6GLM7NLTL76YZJKM2S4CGP3UH4REJHPHZ4YBZW2GSBPW
response = self.client.stellar_get_public_key(parse_path(stellar.DEFAULT_BIP32_PATH))
assert hexlify(response) == b'15d648bfe4d36f196cfb5735ffd8ca54cd4b8233f743f22449de7cf301cdb469'
assert stellar.address_from_public_key(response) == b'GAK5MSF74TJW6GLM7NLTL76YZJKM2S4CGP3UH4REJHPHZ4YBZW2GSBPW'
assert stellar.address_from_public_key(response) == 'GAK5MSF74TJW6GLM7NLTL76YZJKM2S4CGP3UH4REJHPHZ4YBZW2GSBPW'
def test_stellar_get_public_key_fail(self):
self.setup_mnemonic_nopin_nopassphrase()