5 from ppu_tu import setup, teardown, find_in_path # noqa
8 test_prog_path = find_in_path('cmp.py')
11 def create_file(name, content):
12 with open(name, 'w') as fp:
17 create_file('test1', 'test')
18 create_file('test2', 'test')
19 assert subprocess.call(
20 [sys.executable, test_prog_path, "-i", "test1", "test2"]) == 0
22 create_file('test3', 'test3')
23 create_file('test4', 'test4')
24 assert subprocess.call(
25 [sys.executable, test_prog_path, "-s", "test3", "test4"]) == 1