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