def test_available(self):
        mock = MagicMock(side_effect=lambda x: _SYSTEMCTL_STATUS[x])
        with patch.object(systemd, '_systemctl_status', mock):
            self.assertTrue(systemd.available('sshd.service'))
            self.assertFalse(systemd.available('foo.service'))
Wrapper around _format_value().
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/systemd_test.py/SystemdTestCase.test_available--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/appstats/formatting.py/format_value