Beispiel #1
0
 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'))
Beispiel #2
0
 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"))
Beispiel #3
0
 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'))