summaryrefslogtreecommitdiff
path: root/tools/test-networkmanager-service.py
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-06-05 11:26:03 +0200
committerThomas Haller <thaller@redhat.com>2018-06-05 20:08:03 +0200
commit360f95239981a89ba324b706ac98ae0dbfe60404 (patch)
tree6351962f47749cc80e1f1a4dc14b9c4abb845933 /tools/test-networkmanager-service.py
parentf3dddcff2aa81428988480b289b148e09cd623e3 (diff)
downloadNetworkManager-360f95239981a89ba324b706ac98ae0dbfe60404.tar.gz
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.
Diffstat (limited to 'tools/test-networkmanager-service.py')
-rwxr-xr-xtools/test-networkmanager-service.py2
1 files changed, 1 insertions, 1 deletions
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)':