1# Copyright (c) 2023 Nordic Semiconductor ASA
2#
3# SPDX-License-Identifier: Apache-2.0
4
5from twister_harness.device.binary_adapter import NativeSimulatorAdapter
6from twister_harness.helpers.shell import Shell
7
8
9def test_if_shell_helper_properly_send_command(shell_simulator_adapter: NativeSimulatorAdapter) -> None:
10    """Run shell_simulator.py program, send "zen" command via shell helper and verify output."""
11    shell = Shell(shell_simulator_adapter, timeout=5.0)
12    assert shell.wait_for_prompt()
13    lines = shell.exec_command('zen')
14    assert 'The Zen of Python, by Tim Peters' in lines
15