Example #1
0
 def test_unmonitor(self):
     """
     Test for Unmonitor service via monit
     """
     with patch.dict(monit.__salt__,
                     {"cmd.retcode": MagicMock(return_value=False)}):
         self.assertTrue(monit.unmonitor("name"))
Example #2
0
 def test_unmonitor(self):
     '''
     Test for Unmonitor service via monit
     '''
     with patch.dict(monit.__salt__,
                     {'cmd.retcode': MagicMock(return_value=False)}):
         self.assertTrue(monit.unmonitor('name'))
Example #3
0
 def test_unmonitor(self):
     '''
     Test for Unmonitor service via monit
     '''
     with patch.dict(monit.__salt__,
                     {'cmd.retcode': MagicMock(return_value=False)}):
         self.assertTrue(monit.unmonitor('name'))