I am writing a program which contains a lot of file operation. Some operations are done by calling subprocess.Popen
, eg, split -l 50000 ${filename}
, gzip -d -f ${filename} ${filename}.
.
Now I want to unit test the functionality of the program. But how could I unit test these functions?
Any suggestions?