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'))