I wrote this script that monitors memory usage of processes and kills them if they get too high.  I&#39;m having a hard time figuring out how to test something like this.<div><br></div><div>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&#39;m thinking about doing but would like to hear other peoples opinions!</div>