예제 #1
0
 def test_stop(self):
     """
     Test to stop the specified service
     """
     with patch.dict(smf.__salt__,
                     {"cmd.retcode": MagicMock(return_value=False)}):
         self.assertTrue(smf.stop("name"))
예제 #2
0
 def test_stop(self):
     '''
     Test to stop the specified service
     '''
     with patch.dict(smf.__salt__,
                     {'cmd.retcode': MagicMock(return_value=False)}):
         self.assertTrue(smf.stop('name'))