title: How do I test for exceptions in Python PyTAP?
body: <p>I am using Python PyTAP:<br>
  <a href="http://git.codesimply.com/?p=PyTAP.git" rel="nofollow">http://git.codesimply.com/?p=PyTAP.git</a></p>
  
  <p>I can use the <code>ok</code> function to test truths (1 == 1, etc). However, I would like to test if a function is raising an exception properly. How would I be able to do that? Thanks!</p>
  
  <p>Edit:</p>
  
  <p>The function checks a list of strings. If the strings fit certain conditions, then a exception is raised. If those conditions are not met, then the function returns some values.</p>