Here are the examples of the python api twisted.application.reactors.getPlugins taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
3
Source : test_application.py
with MIT License
from autofelix
with MIT License
from autofelix
def setUp(self):
"""
Override the L{reactors.getPlugins} function, normally bound to
L{twisted.plugin.getPlugins}, in order to control which
L{IReactorInstaller} plugins are seen as available.
C{self.pluginResults} can be customized and will be used as the
result of calls to C{reactors.getPlugins}.
"""
self.pluginCalls = []
self.pluginResults = []
self.originalFunction = reactors.getPlugins
reactors.getPlugins = self._getPlugins
def tearDown(self):
3
Source : test_application.py
with MIT License
from autofelix
with MIT License
from autofelix
def tearDown(self):
"""
Restore the original L{reactors.getPlugins}.
"""
reactors.getPlugins = self.originalFunction
def _getPlugins(self, interface, package=None):