I saw video recently that suggested not making new exception types.  Maybe import error also, and subclass <code>error.TestFail or error.TestError</code>?  Just a suggestion.