diff options
author | stuarthayhurst <stuart.a.hayhurst@gmail.com> | 2023-04-15 20:07:15 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2023-04-17 15:02:44 +0200 |
commit | 8356dd01d6fe9cef055543cb5b45847b1d37f21e (patch) | |
tree | 1eba8a8372d07a0fe94e503a2f13684c907126c5 /src/linux/integration-test.py | |
parent | 8052220fb3e6aa5c70b7712a379b7f6bbb08ee1c (diff) | |
download | upower-8356dd01d6fe9cef055543cb5b45847b1d37f21e.tar.gz |
tests: Add test for siblings overwiting good type guesses
Diffstat (limited to 'src/linux/integration-test.py')
-rwxr-xr-x | src/linux/integration-test.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/linux/integration-test.py b/src/linux/integration-test.py index 7b50827..a2c8dec 100755 --- a/src/linux/integration-test.py +++ b/src/linux/integration-test.py @@ -2500,6 +2500,28 @@ class Tests(dbusmock.DBusTestCase): self.stop_daemon() + def test_sibling_priority_no_overwrite(self): + 'Test siblings using the fallback device do not overwrite previous guesses' + + self.start_daemon() + self.testbed.add_from_file(os.path.join(edir, 'tests/wacom-pen-digitiser.device')) + + self.assertDevs({ + 'battery_wacom_battery_0': { + 'NativePath': 'wacom_battery_0', + 'Model': 'Wacom HID 52D5', + 'Type': UP_DEVICE_KIND_TABLET, + 'PowerSupply': False, + 'HasHistory': True, + 'Percentage': 100.0, + 'IsPresent': True, + 'State': UP_DEVICE_STATE_FULLY_CHARGED, + 'IsRechargeable': True, + } + }) + + self.stop_daemon() + # # libupower-glib tests (through introspection) # |