Unit tests and coverage

Joseph L. Casale jcasale at activenetwerx.com
Sat Dec 28 23:21:55 EST 2013


I have a script that accepts cmdline arguments and receives input via stdin.
I have a unit test for it that uses Popen to setup an environment, pass the args
and provide the stdin.

Problem is obviously this does nothing for providing coverage. Given the above
specifics, anyone know of a way to work around this?

Thanks,
jlc



More information about the Python-list mailing list