Exemplo n.º 1
0
 def test_available(self):
     '''
     Test if it returns ``True`` if the specified service is available,
     otherwise returns ``False``.
     '''
     with patch.object(os, 'listdir',
                       MagicMock(return_value=['/etc/service'])):
         self.assertTrue(s6.available('/etc/service'))
Exemplo n.º 2
0
 def test_available(self):
     """
     Test if it returns ``True`` if the specified service is available,
     otherwise returns ``False``.
     """
     with patch.object(os, "listdir",
                       MagicMock(return_value=["/etc/service"])):
         self.assertTrue(s6.available("/etc/service"))
Exemplo n.º 3
0
 def test_available(self):
     '''
     Test if it returns ``True`` if the specified service is available,
     otherwise returns ``False``.
     '''
     with patch.object(os, 'listdir',
                       MagicMock(return_value=['/etc/service'])):
         self.assertTrue(s6.available('/etc/service'))