Beispiel #1
0
 def test_full_restart(self):
     '''
     Test if it calls s6.restart() function.
     '''
     mock_ret = MagicMock(return_value=False)
     with patch.dict(s6.__salt__, {'cmd.retcode': mock_ret}):
         self.assertIsNone(s6.full_restart('ssh'))
Beispiel #2
0
 def test_full_restart(self):
     """
     Test if it calls s6.restart() function.
     """
     mock_ret = MagicMock(return_value=False)
     with patch.dict(s6.__salt__, {"cmd.retcode": mock_ret}):
         self.assertIsNone(s6.full_restart("ssh"))
Beispiel #3
0
 def test_full_restart(self):
     '''
     Test if it calls s6.restart() function.
     '''
     mock_ret = MagicMock(return_value=False)
     with patch.dict(s6.__salt__, {'cmd.retcode': mock_ret}):
         self.assertIsNone(s6.full_restart('ssh'))