def test_term(self): ''' Test if it send a TERM to service via s6. ''' mock_ret = MagicMock(return_value=False) with patch.dict(s6.__salt__, {'cmd.retcode': mock_ret}): self.assertTrue(s6.term('ssh'))
def test_term(self): """ Test if it send a TERM to service via s6. """ mock_ret = MagicMock(return_value=False) with patch.dict(s6.__salt__, {"cmd.retcode": mock_ret}): self.assertTrue(s6.term("ssh"))