Ejemplo n.º 1
0
 def test_disabled(self):
     '''
     Test for Return True if the named service is disabled, false otherwise
     '''
     mock = MagicMock(return_value=['name'])
     with patch.object(gentoo_service, 'get_disabled', mock):
         self.assertTrue(gentoo_service.disabled('name'))
Ejemplo n.º 2
0
 def test_disabled(self):
     '''
     Test for Return True if the named service is disabled, false otherwise
     '''
     mock = MagicMock(return_value=['name'])
     with patch.object(gentoo_service, 'get_disabled', mock):
         self.assertTrue(gentoo_service.disabled('name'))
Ejemplo n.º 3
0
 def test_disabled(self):
     """
     Test for Return True if the named service is disabled, false otherwise
     """
     mock = MagicMock(return_value=["name"])
     with patch.object(gentoo_service, "get_disabled", mock):
         self.assertTrue(gentoo_service.disabled("name"))