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