[TIP] unittest hook in addition to setUp and tearDown

Dana Scott danawscott0 at gmail.com
Wed Nov 9 09:38:16 PST 2016


Hello,

Is there a way to add a hook to a unittest.TestCase that would run after or
during each test method, before tearDown, and affect the result? That is,
I'd like it to contain an assert method that determines whether it passes
or fails.

Thanks,

Dana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20161109/7320a4a0/attachment.htm>


More information about the testing-in-python mailing list