def test_stop(self): ''' Test if it stops service via s6. ''' mock_ret = MagicMock(return_value=False) with patch.dict(s6.__salt__, {'cmd.retcode': mock_ret}): self.assertTrue(s6.stop('ssh'))
def test_stop(self): """ Test if it stops service via s6. """ mock_ret = MagicMock(return_value=False) with patch.dict(s6.__salt__, {"cmd.retcode": mock_ret}): self.assertTrue(s6.stop("ssh"))