示例#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())
示例#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())
示例#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())