From 847e6316badf7ee0c15a7a451f909ce7045edfe8 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 17 Apr 2012 14:28:39 +0200 Subject: test: Remove handling of no longer existing properties --- test/monitor-connman | 4 +--- test/monitor-manager | 7 ------- test/test-manager | 8 +------- 3 files changed, 2 insertions(+), 17 deletions(-) (limited to 'test') diff --git a/test/monitor-connman b/test/monitor-connman index 4d44519a..1fe85c7e 100755 --- a/test/monitor-connman +++ b/test/monitor-connman @@ -42,9 +42,7 @@ def extract(name, value): val = int(value) elif name in ["IPv4", "IPv6", "Ethernet", "Proxy" ]: val = extract_values(value) - elif name in ["Nameservers", "Domains", "Services", - "Update", "Technologies", "AvailableTechnologies", - "EnabledTechnologies", "ConnectedTechnologies" ]: + elif name in ["Nameservers", "Domains", "Services", "Technologies"]: val = extract_list(value) else: val = str(value) diff --git a/test/monitor-manager b/test/monitor-manager index 05e1efd2..7620b35c 100755 --- a/test/monitor-manager +++ b/test/monitor-manager @@ -11,13 +11,6 @@ def property_changed(name, value): for i in value: val = val + " " + i[i.rfind("/") + 1:] val = val + " ]" - elif name in ["AvailableTechnologies", "EnabledTechnologies", - "ConnectedTechnologies", - "AvailableDebugs", "EnabledDebugs"]: - val = "[" - for i in value: - val = val + " " + i - val = val + " ]" elif name in ["Strength", "Priority"]: val = int(value) else: diff --git a/test/test-manager b/test/test-manager index 80527d9c..2b4493c5 100755 --- a/test/test-manager +++ b/test/test-manager @@ -31,13 +31,7 @@ manager = dbus.Interface(bus.get_object("net.connman", "/"), properties = manager.GetProperties() for key in properties.keys(): - if key in ["AvailableDebugs", "EnabledDebugs"]: - print "%s" % (key) - list = "" - for val in properties[key]: - list = list + val + " " - print " [ %s]" % (list) - elif key in ["OfflineMode", "SessionMode"]: + if key in ["OfflineMode", "SessionMode"]: print "%s" % (key) if properties[key] == dbus.Boolean(1): print " true" -- cgit v1.2.3