[TIP] How would you test something that deals with processes?

John Anderson 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...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20110606/adebb93a/attachment.htm>

More information about the testing-in-python mailing list