1 2 3 4 5 6 7 8 9 10 11 12
copy("src", "out") run(""" coverage run chdir.py coverage report """, rundir="out", outfile="stdout.txt") contains("out/stdout.txt", "Line One", "Line Two", "chdir" ) doesnt_contain("out/stdout.txt", "No such file or directory") clean("out")