def METHOD_NAME(self):
    # Struct error
    tx_hex = self.tx.get_struct().hex()
    params = ['--raw_tx', tx_hex + 'aa']
    args = self.parser.parse_args(params)
    f = StringIO()
    with capture_logs():
        with redirect_stdout(f):
            execute(args)
    # Transforming prints str in array
    output = f.getvalue().strip().splitlines()
    self.assertEqual('Error getting transaction from bytes', output[0])