mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
add test for GetAddress with show flag on
This commit is contained in:
parent
610547cf32
commit
705190e147
14
tests/test_msg_getaddress_show.py
Normal file
14
tests/test_msg_getaddress_show.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import unittest
|
||||||
|
import common
|
||||||
|
import trezorlib.ckd_public as bip32
|
||||||
|
|
||||||
|
class TestMsgGetaddress(common.TrezorTest):
|
||||||
|
|
||||||
|
def test_show(self):
|
||||||
|
self.setup_mnemonic_nopin_nopassphrase()
|
||||||
|
self.assertEqual(self.client.get_address('Bitcoin', [1], show_display=True), '1CK7SJdcb8z9HuvVft3D91HLpLC6KSsGb')
|
||||||
|
self.assertEqual(self.client.get_address('Bitcoin', [2], show_display=True), '15AeAhtNJNKyowK8qPHwgpXkhsokzLtUpG')
|
||||||
|
self.assertEqual(self.client.get_address('Bitcoin', [3], show_display=True), '1CmzyJp9w3NafXMSEFH4SLYUPAVCSUrrJ5')
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
Loading…
Reference in New Issue
Block a user