tests: Rename test_not_allowed()

It only tests for the ActiveProfile authorisation.
This commit is contained in:
Bastien Nocera 2021-10-28 11:04:00 +02:00
parent 41f00d4ed5
commit 141d2ee64f

View file

@ -762,8 +762,8 @@ class Tests(dbusmock.DBusTestCase):
self.assertEventually(lambda: self.get_dbus_property('ActiveProfile') == 'power-saver')
self.stop_daemon()
def test_not_allowed(self):
'''Check that we get errors when trying to do things that aren't allowed'''
def test_not_allowed_profile(self):
'''Check that we get errors when trying to change a profile and not allowed'''
self.obj_polkit.SetAllowed(dbus.Array([], signature='s'))
self.start_daemon()