<s> from nose . tools import * <EOL> from lust import unix <EOL> import os <EOL> from time import sleep <EOL> def setup ( ) : <EOL> if unix . still_running ( "<STR_LIT>" , pid_file_path = "<STR_LIT>" ) : <EOL> os . system ( '<STR_LIT>' ) <EOL> def test_simple_server ( ) : <EOL> if not os . path . exists ( "<STR_LIT>" ) : <EOL> os . mkdir ( "<STR_LIT>" ) <EOL> os . system ( '<STR_LIT>' ) <EOL> sleep ( <NUM_LIT:1> ) <EOL> EXPECT_PATHS = [ '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ] <EOL> for path in EXPECT_PATHS : <EOL> assert_true ( os . path . exists ( path ) , "<STR_LIT>" % path ) <EOL> os . system ( '<STR_LIT>' ) <EOL> sleep ( <NUM_LIT:1> ) <EOL> assert_false ( unix . still_running ( "<STR_LIT>" , pid_file_path = "<STR_LIT>" ) ) </s>
