示例#1
0
 def test_restart(self):
     """
     Test for Restart service via monit
     """
     with patch.dict(monit.__salt__,
                     {"cmd.retcode": MagicMock(return_value=False)}):
         self.assertTrue(monit.restart("name"))
示例#2
0
 def test_restart(self):
     '''
     Test for Restart service via monit
     '''
     with patch.dict(monit.__salt__,
                     {'cmd.retcode': MagicMock(return_value=False)}):
         self.assertTrue(monit.restart('name'))
示例#3
0
 def test_restart(self):
     '''
     Test for Restart service via monit
     '''
     with patch.dict(monit.__salt__,
                     {'cmd.retcode': MagicMock(return_value=False)}):
         self.assertTrue(monit.restart('name'))