From 360f95239981a89ba324b706ac98ae0dbfe60404 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 5 Jun 2018 11:26:03 +0200 Subject: clients/tests: test `nmcli con mod` command with different locale Just to give it some variety. Also, note how the message from the server cannot be translated. Which is the case with real NetworkManager as well, and is a major usability issue. --- tools/test-networkmanager-service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/test-networkmanager-service.py') diff --git a/tools/test-networkmanager-service.py b/tools/test-networkmanager-service.py index 19e0fdcc12..2e9dcdb296 100755 --- a/tools/test-networkmanager-service.py +++ b/tools/test-networkmanager-service.py @@ -109,7 +109,7 @@ class Util: if val.signature == 'au': return GLib.Variant('aau', [Util.variant_from_dbus(x) for x in val]) if val.signature == 'a{sv}': - return GLib.Variant('aa{sv}', [(str(k), Util.variant_from_dbus(v)) for k, v in val]) + return GLib.Variant('aa{sv}', [collections.OrderedDict([(str(k), Util.variant_from_dbus(v)) for k, v in addr.items()]) for addr in val]) if val.signature == '(ayuay)': return GLib.Variant('a(ayuay)', [Util.variant_from_dbus(x) for x in val]) if val.signature == '(ayuayu)': -- cgit v1.2.1