diff --git a/support/testing/tests/package/sample_python_networkmanager_goi.py b/support/testing/tests/package/sample_python_networkmanager_goi.py index 240e8437fd..dff68e66f9 100644 --- a/support/testing/tests/package/sample_python_networkmanager_goi.py +++ b/support/testing/tests/package/sample_python_networkmanager_goi.py @@ -24,3 +24,11 @@ for c in connections: print("{}:".format(c.get_id())) c.for_each_setting_value(print_values, None) print("\n") +print("found {} defined connections".format(len(connections))) +assert len(connections) > 0 + +# check that we can find the loopback device ... +loopback = client.get_device_by_iface("lo") +# ... and read its type and status as expected +assert loopback.get_device_type().name == "LOOPBACK" +assert loopback.get_state().name == "ACTIVATED"