def test_pid_remove_dead_still_running(): unix.pid_store("test_pid_remove_dead", pid_file_path="/tmp") unix.pid_remove_dead("test_pid_remove_dead", pid_file_path="/tmp") assert_true(os.path.exists("/tmp/test_pid_remove_dead.pid"))
def test_pid_remove_dead(): unix.pid_store("test_pid_remove_dead", pid_file_path="/tmp") unix.pid_remove_dead("test_pid_remove_dead", pid_file_path="/tmp") assert_false(os.path.exists("/tmp/test_pid_remove_dead.pid"))