mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-23 09:18:15 +02:00
tests: Rename test_not_allowed()
It only tests for the ActiveProfile authorisation.
This commit is contained in:
parent
41f00d4ed5
commit
141d2ee64f
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue