def test_missing(self):
        mock = MagicMock(side_effect=lambda x: _SYSTEMCTL_STATUS[x])
        with patch.object(systemd, '_systemctl_status', mock):
            self.assertFalse(systemd.missing('sshd.service'))
            self.assertTrue(systemd.missing('foo.service'))
Test to the inverse of service.available.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/systemd_test.py/SystemdTestCase.test_missing