Exemple #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())
Exemple #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())
Exemple #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())