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