Esempio n. 1
0
 def test_restart(self):
     '''
     Tests if it restart the named service.
     '''
     with patch.dict(supervisord.__salt__, {'cmd.run_all': self._m_all(),
                                            'cmd.which_bin': self._m_bin()}):
         self.assertTrue(supervisord.restart())
Esempio n. 2
0
 def test_restart(self):
     '''
     Tests if it restart the named service.
     '''
     with patch.dict(supervisord.__salt__, {'cmd.run_all': self._m_all(),
                                            'cmd.which_bin': self._m_bin()}):
         self.assertTrue(supervisord.restart())
Esempio n. 3
0
 def test_restart(self):
     """
     Tests if it restart the named service.
     """
     with patch.dict(
         supervisord.__salt__,
         {"cmd.run_all": self._m_all(), "cmd.which_bin": self._m_bin()},
     ):
         self.assertTrue(supervisord.restart())