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'))
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"))