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