def test_is_running(self):
    self.patch_object(self.c, '_verify_systemd_not_none', name='mock__verify_systemd_not_none')
    mock__systemd = mock.Mock()
    mock__systemd.is_running.return_value = False
    self.c._systemd = mock__systemd
    self.assertFalse(self.c.is_running())
    self.mock__verify_systemd_not_none.assert_called_once_with()
    mock__systemd.is_running.assert_called_once_with()
def test_is_running(self):
    self.patch_object(self.c, '_verify_systemd_not_none', name='mock__verify_systemd_not_none')
    mock__systemd = mock.Mock()
    mock__systemd.is_running.return_value = False
    self.c._systemd = mock__systemd
    self.assertFalse(self.c.is_running())
    self.mock__verify_systemd_not_none.assert_called_once_with()
    mock__systemd.is_running.assert_called_once_with()