def test_launchctl(self):
        # Expected Functionality
        self.assertTrue(
            self.run_function('service.launchctl', ['error', 'bootstrap', 64]))
        self.assertEqual(
            self.run_function('service.launchctl',
                              ['error', 'bootstrap', 64],
                              return_stdout=True),
            '64: unknown error code')

        # Raise an error
        self.assertIn(
            ' Failed to error service',
            self.run_function('service.launchctl', ['error']))
Test service.launchctl
dataset/ETHPy150Open saltstack/salt/tests/integration/modules/mac_service.py/MacServiceModuleTest.test_launchctl