mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-02-04 16:30:27 +01:00
integration-test: add get_critical_action() test
https://bugs.freedesktop.org/show_bug.cgi?id=99763
This commit is contained in:
parent
305a24a115
commit
d69121971f
1 changed files with 2 additions and 2 deletions
|
|
@ -1012,14 +1012,14 @@ class Tests(dbusmock.DBusTestCase):
|
|||
def test_lib_daemon_properties(self):
|
||||
'''library GI: daemon properties'''
|
||||
|
||||
self.start_logind(parameters={'CanHybridSleep': 'yes'})
|
||||
self.start_daemon()
|
||||
client = UPowerGlib.Client.new()
|
||||
self.assertRegex(client.get_daemon_version(), '^[0-9.]+$')
|
||||
self.assertIn(client.get_lid_is_present(), [False, True])
|
||||
self.assertIn(client.get_lid_is_closed(), [False, True])
|
||||
self.assertEqual(client.get_on_battery(), False)
|
||||
# FIXME: When we have a fake logind
|
||||
# self.assertEqual(client.get_critical_action(), 'PowerOff')
|
||||
self.assertEqual(client.get_critical_action(), 'HybridSleep')
|
||||
self.stop_daemon()
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue