1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

tests: eth RSK -> RBTC

This commit is contained in:
Jan Pochyla 2018-12-05 15:38:49 +01:00
parent d5f6be09f8
commit 931e549c92

View File

@ -45,7 +45,7 @@ class TestEthereumLayout(unittest.TestCase):
text = format_ethereum_amount(1000000000000000000, None, 61) text = format_ethereum_amount(1000000000000000000, None, 61)
self.assertEqual(text, '1 ETC') self.assertEqual(text, '1 ETC')
text = format_ethereum_amount(1000000000000000000, None, 31) text = format_ethereum_amount(1000000000000000000, None, 31)
self.assertEqual(text, '1 tRSK') self.assertEqual(text, '1 tRBTC')
text = format_ethereum_amount(1000000000000000001, None, 1) text = format_ethereum_amount(1000000000000000001, None, 1)
self.assertEqual(text, '1.000000000000000001 ETH') self.assertEqual(text, '1.000000000000000001 ETH')
@ -54,7 +54,7 @@ class TestEthereumLayout(unittest.TestCase):
text = format_ethereum_amount(10000000000000000001, None, 61) text = format_ethereum_amount(10000000000000000001, None, 61)
self.assertEqual(text, '10.000000000000000001 ETC') self.assertEqual(text, '10.000000000000000001 ETC')
text = format_ethereum_amount(1000000000000000001, None, 31) text = format_ethereum_amount(1000000000000000001, None, 31)
self.assertEqual(text, '1.000000000000000001 tRSK') self.assertEqual(text, '1.000000000000000001 tRBTC')
# unknown chain # unknown chain
text = format_ethereum_amount(1, None, 9999) text = format_ethereum_amount(1, None, 9999)