From: Samuel Ortiz Date: Sun, 24 Nov 2013 22:55:41 +0000 (+0100) Subject: test: Display tag properties from the list command X-Git-Tag: 0.14~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=146b9cd51896f5ded3a9afb67c2afc036f1e3f04;p=platform%2Fupstream%2Fneard.git test: Display tag properties from the list command --- diff --git a/test/test-tag b/test/test-tag index 31576ac..3d2c226 100755 --- a/test/test-tag +++ b/test/test-tag @@ -53,6 +53,19 @@ if (sys.argv[1] == "list"): print(" [ %s ]" % (path)) + props = interfaces["org.neard.Tag"] + + for (key, value) in props.items(): + if key in ["ReadOnly"]: + if value == dbus.Boolean(1): + val = "true" + else: + val = "false" + print(" %s = %s" % (key, val)) + + else: + print(" %s = %s" % (key, value)) + sys.exit(0) if (sys.argv[1] == "dump"):