示例#1
0
 def test_available(self):
     """
     Test for Returns ``True`` if the specified service
     is available, otherwise returns``False``.
     """
     mock = MagicMock(return_value=[])
     with patch.object(daemontools, "get_all", mock):
         self.assertFalse(daemontools.available("name"))
示例#2
0
 def test_available(self):
     '''
     Test for Returns ``True`` if the specified service
     is available, otherwise returns``False``.
     '''
     mock = MagicMock(return_value=[])
     with patch.object(daemontools, 'get_all', mock):
         self.assertFalse(daemontools.available('name'))
示例#3
0
 def test_available(self):
     '''
     Test for Returns ``True`` if the specified service
     is available, otherwise returns``False``.
     '''
     mock = MagicMock(return_value=[])
     with patch.object(daemontools, 'get_all', mock):
         self.assertFalse(daemontools.available('name'))