Popular recipes tagged "meta:requires=sometests"http://code.activestate.com/recipes/tags/meta:requires=sometests/2006-01-12T09:07:50-08:00ActiveState Code RecipesBroken Test decorator (Python)
2006-01-12T09:07:50-08:00Scott David Danielshttp://code.activestate.com/recipes/users/98131/http://code.activestate.com/recipes/466288-broken-test-decorator/
<p style="color: grey">
Python
recipe 466288
by <a href="/recipes/users/98131/">Scott David Daniels</a>
.
</p>
<p>broken_test_XXX(reason) is a decorator for "inverting" the sense of the following unit test. Such tests will succeed where they would have failed (or failed because of a raised exception), and fail if the decorated test succeeds.</p>