6 from ppu_tu import setup, teardown, find_in_path # noqa
11 test_prog_path = find_in_path('which.py')
12 if not test_prog_path:
13 sys.exit("Cannot find which.py in %s" % os.environ["PATH"])
17 assert subprocess.check_output(
18 [sys.executable, test_prog_path, "which.py"],
19 universal_newlines=True).strip() == test_prog_path
20 assert subprocess.check_output(
21 [sys.executable, test_prog_path, "WhoWhereWhenceWhichWhereIs.py"],
22 universal_newlines=True).strip() == ''