예제 #1
0
 def test_missing(self):
     '''
     Test if it returns ``True`` if the specified service is not available,
     otherwise returns ``False``.
     '''
     with patch.object(os, 'listdir',
                       MagicMock(return_value=['/etc/service'])):
         self.assertTrue(s6.missing('foo'))
예제 #2
0
 def test_missing(self):
     """
     Test if it returns ``True`` if the specified service is not available,
     otherwise returns ``False``.
     """
     with patch.object(os, "listdir",
                       MagicMock(return_value=["/etc/service"])):
         self.assertTrue(s6.missing("foo"))
예제 #3
0
 def test_missing(self):
     '''
     Test if it returns ``True`` if the specified service is not available,
     otherwise returns ``False``.
     '''
     with patch.object(os, 'listdir',
                       MagicMock(return_value=['/etc/service'])):
         self.assertTrue(s6.missing('foo'))