示例#1
0
 def test_start(self):
     '''
     Test if it starts service via s6-svc.
     '''
     mock_ret = MagicMock(return_value=False)
     with patch.dict(s6.__salt__, {'cmd.retcode': mock_ret}):
         self.assertTrue(s6.start('ssh'))
示例#2
0
 def test_start(self):
     """
     Test if it starts service via s6-svc.
     """
     mock_ret = MagicMock(return_value=False)
     with patch.dict(s6.__salt__, {"cmd.retcode": mock_ret}):
         self.assertTrue(s6.start("ssh"))
示例#3
0
 def test_start(self):
     '''
     Test if it starts service via s6-svc.
     '''
     mock_ret = MagicMock(return_value=False)
     with patch.dict(s6.__salt__, {'cmd.retcode': mock_ret}):
         self.assertTrue(s6.start('ssh'))