def test_monitor(self): """ Test for monitor service via monit """ with patch.dict(monit.__salt__, {"cmd.retcode": MagicMock(return_value=False)}): self.assertTrue(monit.monitor("name"))
def test_monitor(self): ''' Test for monitor service via monit ''' with patch.dict(monit.__salt__, {'cmd.retcode': MagicMock(return_value=False)}): self.assertTrue(monit.monitor('name'))