[at-spi2-core: 36/47] Test the Description property of the registry's root
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 36/47] Test the Description property of the registry's root
- Date: Wed, 13 Jul 2022 03:08:30 +0000 (UTC)
commit b2bc77023ed3e19f6f7483645e2a11952c061de0
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jul 12 12:36:16 2022 -0500
Test the Description property of the registry's root
tests/registryd/test_registry_startup.py | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/tests/registryd/test_registry_startup.py b/tests/registryd/test_registry_startup.py
index df23fede..cd3afac3 100644
--- a/tests/registryd/test_registry_startup.py
+++ b/tests/registryd/test_registry_startup.py
@@ -1,6 +1,14 @@
PROPERTIES_IFACE = 'org.freedesktop.DBus.Properties'
ACCESSIBLE_IFACE = 'org.a11y.atspi.Accessible'
+def get_property(proxy, iface_name, prop_name):
+ return proxy.Get(iface_name, prop_name, dbus_interface=PROPERTIES_IFACE)
+
def test_accessible_iface_properties(registry, session_manager):
- val = registry.Get(ACCESSIBLE_IFACE, 'Name', dbus_interface=PROPERTIES_IFACE)
- assert str(val) == 'main'
+ values = [
+ ('Name', 'main'),
+ ('Description', ''),
+ ]
+
+ for prop_name, expected in values:
+ assert get_property(registry, ACCESSIBLE_IFACE, prop_name) == expected
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]