示例#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'))