[TIP] How would you test something that deals with processes?
sontek at gmail.com
Mon Jun 6 17:25:01 PDT 2011
I wrote this script that monitors memory usage of processes and kills them
if they get too high. I'm having a hard time figuring out how to test
something like this.
Would you just mock out the process list and test that if you pass it a
process list it calls send_signal? Thats what i'm thinking about doing but
would like to hear other peoples opinions!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the testing-in-python