twisted.trial.unittest.SynchronousTestCase.callDeprecated(self, version, f, *args, **kwargs)method documentation
Call a function that should have been deprecated at a specific version and in favor of a specific alternative, and assert that it was thusly deprecated.
|Parameters||version||A 2-sequence of (since, replacement), where |
|f||The deprecated function to call.|
|args||The arguments to pass to |
|kwargs||The keyword arguments to pass to |
|FailTest||if no warnings were emitted by |