Exemplo n.º 1
0
 def test_start(self):
     """
     Test for start
     """
     with patch.dict(monit.__salt__,
                     {"cmd.retcode": MagicMock(return_value=False)}):
         self.assertTrue(monit.start("name"))
Exemplo n.º 2
0
 def test_start(self):
     '''
     Test for start
     '''
     with patch.dict(monit.__salt__,
                     {'cmd.retcode': MagicMock(return_value=False)}):
         self.assertTrue(monit.start('name'))
Exemplo n.º 3
0
 def test_start(self):
     '''
     Test for start
     '''
     with patch.dict(monit.__salt__,
                     {'cmd.retcode': MagicMock(return_value=False)}):
         self.assertTrue(monit.start('name'))