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

tests: fix test_msg_ethereum_signtx.py

This commit is contained in:
Pavol Rusnak 2018-01-11 23:06:47 +01:00
parent 0c517c1565
commit 47cfa178e4
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -27,7 +27,7 @@ class TestMsgEthereumSigntx(TrezorTest):
with self.client: with self.client:
self.client.set_expected_responses([ self.client.set_expected_responses([
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.SignTx), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.EthereumTxRequest(data_length=None), # v,r,s checked with assert proto.EthereumTxRequest(data_length=None), # v,r,s checked with assert
]) ])
@ -46,7 +46,7 @@ class TestMsgEthereumSigntx(TrezorTest):
with self.client: with self.client:
self.client.set_expected_responses([ self.client.set_expected_responses([
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.SignTx), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.EthereumTxRequest(data_length=None), proto.EthereumTxRequest(data_length=None),
]) ])
@ -67,8 +67,8 @@ class TestMsgEthereumSigntx(TrezorTest):
with self.client: with self.client:
self.client.set_expected_responses([ self.client.set_expected_responses([
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.SignTx), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.EthereumTxRequest(data_length=None), proto.EthereumTxRequest(data_length=None),
]) ])
@ -87,8 +87,8 @@ class TestMsgEthereumSigntx(TrezorTest):
with self.client: with self.client:
self.client.set_expected_responses([ self.client.set_expected_responses([
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.SignTx), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.EthereumTxRequest(data_length=1024, signature_r=None, signature_s=None, signature_v=None), proto.EthereumTxRequest(data_length=1024, signature_r=None, signature_s=None, signature_v=None),
proto.EthereumTxRequest(data_length=1024), proto.EthereumTxRequest(data_length=1024),
@ -114,8 +114,8 @@ class TestMsgEthereumSigntx(TrezorTest):
with self.client: with self.client:
self.client.set_expected_responses([ self.client.set_expected_responses([
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.SignTx), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.EthereumTxRequest(data_length=1024, signature_r=None, signature_s=None, signature_v=None), proto.EthereumTxRequest(data_length=1024, signature_r=None, signature_s=None, signature_v=None),
proto.EthereumTxRequest(data_length=1024), proto.EthereumTxRequest(data_length=1024),
@ -152,8 +152,8 @@ class TestMsgEthereumSigntx(TrezorTest):
with self.client: with self.client:
self.client.set_expected_responses([ self.client.set_expected_responses([
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.SignTx), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.EthereumTxRequest(data_length=1024, signature_r=None, signature_s=None, signature_v=None), proto.EthereumTxRequest(data_length=1024, signature_r=None, signature_s=None, signature_v=None),
proto.EthereumTxRequest(data_length=1024), proto.EthereumTxRequest(data_length=1024),
@ -221,7 +221,7 @@ class TestMsgEthereumSigntx(TrezorTest):
with self.client: with self.client:
self.client.set_expected_responses([ self.client.set_expected_responses([
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.SignTx), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.EthereumTxRequest(), proto.EthereumTxRequest(),
]) ])
@ -255,8 +255,8 @@ class TestMsgEthereumSigntx(TrezorTest):
with self.client: with self.client:
self.client.set_expected_responses([ self.client.set_expected_responses([
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.ConfirmOutput), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.ButtonRequest(code=proto.ButtonRequestType.SignTx), proto.ButtonRequest(code=proto.ButtonRequestType.SignTx),
proto.EthereumTxRequest(), proto.EthereumTxRequest(),
]) ])