Esempio n. 1
0
 def test_windows(self):
     """
     L{_getInstallFunction} chooses the select reactor on Windows.
     """
     install = _getInstallFunction(windows)
     self.assertEqual(
         install.__module__, 'twisted.internet.selectreactor')
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 def test_osx(self):
     """
     L{_getInstallFunction} chooses the select reactor on OS X.
     """
     install = _getInstallFunction(osx)
     self.assertEqual(
         install.__module__, 'twisted.internet.selectreactor')
Esempio n. 5
0
 def test_linux(self):
     """
     L{_getInstallFunction} chooses the poll reactor on Linux.
     """
     install = _getInstallFunction(linux)
     self.assertEquals(
         install.__module__, 'twisted.internet.pollreactor')
Esempio n. 6
0
 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')
Esempio n. 7
0
 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')
Esempio n. 8
0
 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")
Esempio n. 9
0
 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')
Esempio n. 10
0
 def test_linux(self):
     """
     L{_getInstallFunction} chooses the poll reactor on Linux.
     """
     install = _getInstallFunction(linux)
     self.assertEqual(install.__module__, 'twisted.internet.pollreactor')