mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-04 13:52:35 +00:00
fix two more unit tests
This commit is contained in:
parent
2964cc4f9c
commit
7ae8894214
@ -150,7 +150,7 @@ class TestProtectionLevels(common.TrezorTest):
|
|||||||
proto.PassphraseRequest(),
|
proto.PassphraseRequest(),
|
||||||
proto.ButtonRequest(code=proto_types.ButtonRequest_ConfirmOutput),
|
proto.ButtonRequest(code=proto_types.ButtonRequest_ConfirmOutput),
|
||||||
proto.ButtonRequest(code=proto_types.ButtonRequest_SignTx),
|
proto.ButtonRequest(code=proto_types.ButtonRequest_SignTx),
|
||||||
proto.TxRequest(finished=True)])
|
proto.TxRequest(request_type=proto_types.TXFINISHED)])
|
||||||
self.client.simple_sign_tx('Bitcoin', [inp1, ], [out1, ])
|
self.client.simple_sign_tx('Bitcoin', [inp1, ], [out1, ])
|
||||||
|
|
||||||
# def test_firmware_erase(self):
|
# def test_firmware_erase(self):
|
||||||
|
@ -57,7 +57,7 @@ class TestZeroSig(common.TrezorTest):
|
|||||||
|
|
||||||
msg = self.client._prepare_simple_sign_tx('Bitcoin', [inp1], [out1])
|
msg = self.client._prepare_simple_sign_tx('Bitcoin', [inp1], [out1])
|
||||||
tx = self.client.call(msg)
|
tx = self.client.call(msg)
|
||||||
siglen = ord(tx.serialized_tx[44])
|
siglen = ord(tx.serialized.serialized_tx[44])
|
||||||
|
|
||||||
# Trezor must strip leading zero from signature
|
# Trezor must strip leading zero from signature
|
||||||
self.assertEqual(siglen, 67)
|
self.assertEqual(siglen, 67)
|
||||||
@ -79,7 +79,7 @@ class TestZeroSig(common.TrezorTest):
|
|||||||
|
|
||||||
msg = self.client._prepare_simple_sign_tx('Bitcoin', [inp1], [out1])
|
msg = self.client._prepare_simple_sign_tx('Bitcoin', [inp1], [out1])
|
||||||
tx = self.client.call(msg)
|
tx = self.client.call(msg)
|
||||||
siglen = ord(tx.serialized_tx[44])
|
siglen = ord(tx.serialized.serialized_tx[44])
|
||||||
|
|
||||||
# Trezor must strip leading zero from signature
|
# Trezor must strip leading zero from signature
|
||||||
self.assertEqual(siglen, 66)
|
self.assertEqual(siglen, 66)
|
||||||
|
Loading…
Reference in New Issue
Block a user