mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 07:50:02 +01:00
linux: integration-test: Update test case for "state_all_discharging" support
Updates the "test_battery_ac" test case with the changes introduced by the addition of the "state_all_discharging" field. Namely, we now assert that the "OnBattery" property is False while still checking that the correct "WarningLevel" property is set.
This commit is contained in:
parent
485ca6f20e
commit
a86d2d059c
1 changed files with 1 additions and 1 deletions
|
|
@ -681,7 +681,7 @@ class Tests(dbusmock.DBusTestCase):
|
||||||
self.start_daemon()
|
self.start_daemon()
|
||||||
devs = self.proxy.EnumerateDevices()
|
devs = self.proxy.EnumerateDevices()
|
||||||
self.assertEqual(len(devs), 2)
|
self.assertEqual(len(devs), 2)
|
||||||
self.assertEqual(self.get_dbus_property("OnBattery"), True)
|
self.assertEqual(self.get_dbus_property("OnBattery"), False)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
self.get_dbus_display_property("WarningLevel"), UP_DEVICE_LEVEL_CRITICAL
|
self.get_dbus_display_property("WarningLevel"), UP_DEVICE_LEVEL_CRITICAL
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue