I am writing a program that contains many files. Some operations are performed by calling subprocess.Popen , for example, split -l 50000 ${filename} , gzip -d -f ${filename} ${filename}. .
Now I want unit test program functionality. But how could unit test perform these functions?
Any suggestions?
python subprocess unit-testing
shihpeng
source share