diff --git a/dbusmock/templates/systemd.py b/dbusmock/templates/systemd.py index d4f018d..f1fe508 100644 --- a/dbusmock/templates/systemd.py +++ b/dbusmock/templates/systemd.py @@ -1,5 +1,4 @@ -"""systemd mock template -""" +"""systemd mock template""" # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free diff --git a/tests/test_notification_daemon.py b/tests/test_notification_daemon.py index d4a38ce..edbd425 100644 --- a/tests/test_notification_daemon.py +++ b/tests/test_notification_daemon.py @@ -28,6 +28,7 @@ @unittest.skipUnless(notify_send_version, "notify-send not installed") +@unittest.skipIf(os.path.exists("/etc/apparmor.d/notify-send"), "AppArmor profile for notify-send active") class TestNotificationDaemon(dbusmock.DBusTestCase): """Test mocking notification-daemon"""