summary refs log tree commit diff
path: root/clients/tests/test-client.py
diff options
context:
space:
mode:
Diffstat (limited to 'clients/tests/test-client.py')
-rwxr-xr-xclients/tests/test-client.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/clients/tests/test-client.py b/clients/tests/test-client.py
index 062fc9f3..99d9067f 100755
--- a/clients/tests/test-client.py
+++ b/clients/tests/test-client.py
@@ -26,6 +26,12 @@ from __future__ import print_function
 #    # The important part is that translations work. Test
 #    #  $ LANG=pl_PL.UTF-8 ./clients/cli/nmcli --version
 #    # also ensure that `locale -a` reports the Polish locale.
+#    #
+#    # How to get that right depends on your distro. First check that
+#    # `LANG=pl_PL.UTF-8 /usr/bin/nmcli --version` gives you Polish output
+#    # and that it works in principle.
+#    # Then install NetworkManager in the configured prefix (make install)
+#    # and verify that ./clients/cli/nmcli also gives you Polish.
 #  $ NM_TEST_REGENERATE=1 make check-local-clients-tests-test-client
 #    # Set NM_TEST_REGENERATE=1 to regenerate all files.
 #  $ git diff ... ; git add ...
@@ -562,9 +568,7 @@ class NMStubServer:
     def setProperty(self, path, propname, value, iface_name=None):
         if iface_name is None:
             iface_name = ""
-        self.op_SetProperties(
-            [(path, [(iface_name, [(propname, value),]),]),]
-        )
+        self.op_SetProperties([(path, [(iface_name, [(propname, value)])])])
 
 
 ###############################################################################
@@ -1161,7 +1165,7 @@ class TestNmcli(NmTestBase):
         self.srv.op_AddObj("WifiAp", device="wlan1")
 
         self.srv.addConnection(
-            {"connection": {"type": "802-3-ethernet", "id": "con-1",},}
+            {"connection": {"type": "802-3-ethernet", "id": "con-1"}}
         )
 
     @nm_test