<s> import os <EOL> import time <EOL> import pyservice <EOL> def test_service_start ( ) : <EOL> process = pyservice . load_process ( '<STR_LIT>' ) <EOL> service = pyservice . Service ( process ) <EOL> service . start ( ) <EOL> assert process < > None , process <EOL> assert service < > None , service <EOL> def test_service_stop ( ) : <EOL> time . sleep ( <NUM_LIT:2> ) <EOL> process = pyservice . load_process ( '<STR_LIT>' ) <EOL> service = pyservice . Service ( process ) <EOL> service . stop ( ) <EOL> assert process < > None , process <EOL> assert service < > None , service </s>
