Exemplo 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')
Exemplo 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)
Exemplo 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)
Exemplo 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')
Exemplo 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')
Exemplo 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')
Exemplo 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')
Exemplo 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")
Exemplo 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')
Exemplo 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')