From faf88a3f16b4f4483d4e0e101a237b0738495fec Mon Sep 17 00:00:00 2001 From: grdddj Date: Wed, 23 Feb 2022 16:53:08 +0100 Subject: [PATCH] tests, trezor: Assert scriptPubKey failure for Trezor in test_big_tx Trezor is rejecting to sign this transaction as its inputs do not correspond to the wallet's private keys --- test/test_device.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_device.py b/test/test_device.py index b61e3226d..4b7a9b1e0 100644 --- a/test/test_device.py +++ b/test/test_device.py @@ -535,6 +535,10 @@ def test_big_tx(self): self.fail('Big tx did not cause CLI to error') if self.emulator.type == 'coldcard': self.assertEqual(result['code'], -7) + elif self.emulator.type in ('trezor_1', 'trezor_t'): + # Trezor rejects to sign as inputs do not correspond to the wallet's private keys + self.assertEqual(result['code'], -13) + self.assertIn('Input does not match scriptPubKey', result['error']) else: self.assertNotIn('code', result) self.assertNotIn('error', result)