17 lines
306 B
Python
17 lines
306 B
Python
"""PtyManager 테스트."""
|
|
|
|
from lazy_enter.pty_manager import PtyManager
|
|
|
|
|
|
def test_initial_state():
|
|
pty = PtyManager("echo hello")
|
|
assert not pty.is_alive
|
|
|
|
|
|
def test_start_and_stop():
|
|
pty = PtyManager("cat")
|
|
pty.start()
|
|
assert pty.is_alive
|
|
pty.stop()
|
|
assert not pty.is_alive
|