diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-10-11 19:19:10 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2022-10-11 19:19:10 -0500 |
commit | 8ce42e9f37b1c9f60c7ae4d95c7f51b51a7dacf2 (patch) | |
tree | 065635693b5dd3700779d94354f3f1e309b164d0 /tests | |
parent | 13091f13a4392c9296153746cd7201cdbcb1b525 (diff) | |
download | at-spi2-core-8ce42e9f37b1c9f60c7ae4d95c7f51b51a7dacf2.tar.gz |
Test GetChildren for an empty registry
Diffstat (limited to 'tests')
-rw-r--r-- | tests/registryd/test_root_accessible.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/registryd/test_root_accessible.py b/tests/registryd/test_root_accessible.py index 8a4d5dea..930ecd11 100644 --- a/tests/registryd/test_root_accessible.py +++ b/tests/registryd/test_root_accessible.py @@ -32,6 +32,9 @@ def test_get_child_at_index_for_empty_registry(registry_root, session_manager): (name, path) = registry_root.GetChildAtIndex(0, dbus_interface=ACCESSIBLE_IFACE) assert path == '/org/a11y/atspi/null' +def test_get_children_for_empty_registry(registry_root, session_manager): + assert len(registry_root.GetChildren(dbus_interface=ACCESSIBLE_IFACE)) == 0 + def test_root_get_index_in_parent(registry_root, session_manager): # The registry root is always index 0 assert registry_root.GetIndexInParent(dbus_interface=ACCESSIBLE_IFACE) == 0 |