def test_add(self): ''' Tests if it activates any updates in config for process/group. ''' with patch.dict(supervisord.__salt__, {'cmd.run_all': self._m_all(), 'cmd.which_bin': self._m_bin()}): self.assertTrue(supervisord.add('salt'))
def test_add(self): """ Tests if it activates any updates in config for process/group. """ with patch.dict( supervisord.__salt__, {"cmd.run_all": self._m_all(), "cmd.which_bin": self._m_bin()}, ): self.assertTrue(supervisord.add("salt"))