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