Exemple #1
0
 def test_disabled(self):
     '''
     Test to check to see if the named service is disabled to start on boot
     '''
     with patch.object(smf, 'enabled', return_value=False):
         self.assertTrue(smf.disabled('name'))
Exemple #2
0
 def test_disabled(self):
     '''
     Test to check to see if the named service is disabled to start on boot
     '''
     with patch.object(smf, 'enabled', return_value=False):
         self.assertTrue(smf.disabled('name'))