title: Is there something like 'autotest' for Python unittests?
body: <p>Basically, growl notifications (or other callbacks) when tests break or pass. <strong>Does anything like this exist?</strong></p>
  
  <p>If not, it should be pretty easy to write.. Easiest way would be to..</p>
  
  <ol>
  <li>run <code>python-autotest myfile1.py myfile2.py etc.py</code>
  
  <ul>
  <li>Check if files-to-be-monitored have been modified (possibly just if they've been saved).</li>
  <li>Run any tests in those files.</li>
  <li>If a test fails, but in the previous run it passed, generate a growl alert. Same with tests that fail then pass.</li>
  <li>Wait, and repeat steps 2-5.</li>
  </ul></li>
  </ol>
  
  <p>The problem I can see there is if the tests are in a different file. The simple solution would be to run all the tests after each save.. but with slower tests, this might take longer than the time between saves, and/or could use a lot of CPU power etc..</p>
  
  <p>The best way to do it would be to actually see what bits of code have changed, if function abc() has changed, only run tests that interact with this.. While this would be great, I think it'd be extremely complex to implement?</p>
  
  <p>To summarise:</p>
  
  <ul>
  <li>Is there anything like the Ruby tool <code>autotest</code> (part of the <a href="http://www.zenspider.com/ZSS/Products/ZenTest/" rel="noreferrer">ZenTest package</a>), but for Python code?</li>
  <li>How do you check which functions have changed between two revisions of a script?</li>
  <li>Is it possible to determine which functions a command will call? (Somewhat like a reverse traceback)</li>
  </ul>