Beispiel #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'))
Beispiel #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"))
Beispiel #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'))