Пример #1
0
 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'))
Пример #2
0
 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"))
Пример #3
0
 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'))