Part of vmc.contrib.epsilon.hotfixes
failUnlessWarns assertion from twisted.trial in the pending 2.6 release.
This is from r20668; it should be updated as bugfixes are made.| Function | failUnlessWarns | Fail if the given function doesn't generate the specified warning when |
| Function | install | Undocumented |
| Parameters | category | the category of the warning to check. |
| message | the output message of the warning to check. | |
| filename | the filename where the warning should come from. | |
| f | the function which is supposed to generate the warning. (type: any callable. ) | |
| args | the arguments to f.
| |
| kwargs | the keywords arguments to f.
| |
| Returns | the result of the original function f.
| |