def test_windows(self): """ L{_getInstallFunction} chooses the select reactor on Windows. """ install = _getInstallFunction(windows) self.assertEqual( install.__module__, 'twisted.internet.selectreactor')
def test_unix(self): """ L{_getInstallFunction} chooses the poll reactor on arbitrary Unix platforms, falling back to select(2) if it is unavailable. """ install = _getInstallFunction(unix) self.assertIsPoll(install)
def test_osx(self): """ L{_getInstallFunction} chooses the select reactor on OS X. """ install = _getInstallFunction(osx) self.assertEqual( install.__module__, 'twisted.internet.selectreactor')
def test_linux(self): """ L{_getInstallFunction} chooses the poll reactor on Linux. """ install = _getInstallFunction(linux) self.assertEquals( install.__module__, 'twisted.internet.pollreactor')
def test_linux(self): """ L{_getInstallFunction} chooses the epoll reactor on Linux, or poll if epoll is unavailable. """ install = _getInstallFunction(linux) if requireModule('twisted.internet.epollreactor') is None: self.assertIsPoll(install) else: self.assertEqual(install.__module__, 'twisted.internet.epollreactor')
def test_linux(self): """ L{_getInstallFunction} chooses the epoll reactor on Linux, or poll if epoll is unavailable. """ install = _getInstallFunction(linux) if requireModule('twisted.internet.epollreactor') is None: self.assertIsPoll(install) else: self.assertEqual( install.__module__, 'twisted.internet.epollreactor')
def test_linux(self): """ L{_getInstallFunction} chooses the epoll reactor on Linux, or poll if epoll is unavailable. """ install = _getInstallFunction(linux) try: from twisted.internet import epollreactor except ImportError: self.assertIsPoll(install) else: self.assertEqual(install.__module__, "twisted.internet.epollreactor")
def test_linux(self): """ L{_getInstallFunction} chooses the epoll reactor on Linux, or poll if epoll is unavailable. """ install = _getInstallFunction(linux) try: from twisted.internet import epollreactor except ImportError: self.assertIsPoll(install) else: self.assertEqual( install.__module__, 'twisted.internet.epollreactor')
def test_linux(self): """ L{_getInstallFunction} chooses the poll reactor on Linux. """ install = _getInstallFunction(linux) self.assertEqual(install.__module__, 'twisted.internet.pollreactor')