tests: remove estimate_tx_size

pull/25/head
Pavol Rusnak 7 years ago
parent b6dc73ce9c
commit 32fa08f38b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -158,12 +158,6 @@ class TestProtectionLevels(common.TrezorTest):
binascii.unhexlify('209e23edf0e4e47ff1dec27f32cd78c50e74ef018ee8a6adf35ae17c7a9b0dd96f48b493fd7dbab03efb6f439c6383c9523b3bbc5f1a7d158a6af90ab154e9be80'),
'This is an example of a signed message.')
def test_estimate_txsize(self):
with self.client:
self.setup_mnemonic_pin_passphrase()
self.client.set_expected_responses([proto.TxSize()])
self.client.estimate_tx_size('Bitcoin', [], [])
"""
def test_simplesigntx(self):
self.setup_mnemonic_pin_passphrase()

@ -712,15 +712,6 @@ class ProtocolMixin(object):
ask_on_decrypt=ask_on_decrypt,
iv=iv))
@field('tx_size')
@expect(proto.TxSize)
def estimate_tx_size(self, coin_name, inputs, outputs):
msg = proto.EstimateTxSize()
msg.coin_name = coin_name
msg.inputs_count = len(inputs)
msg.outputs_count = len(outputs)
return self.call(msg)
def _prepare_simple_sign_tx(self, coin_name, inputs, outputs):
msg = proto.SimpleSignTx()
msg.coin_name = coin_name

Loading…
Cancel
Save