diff options
author | Bertrand Aygon <bertrand.aygon@intel.com> | 2011-03-08 16:08:41 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-03-08 13:34:24 -0600 |
commit | c36c643c2ebebf4463618bbe02bd6a67aa06b7d3 (patch) | |
tree | a6dbbd543dc76ef81fd02ccb7b959c4dbae87b53 /test/test-modem | |
parent | 99c3d33a5d1f4d2e047486192494e375a939c233 (diff) | |
download | ofono-c36c643c2ebebf4463618bbe02bd6a67aa06b7d3.tar.bz2 |
test: display more properties in test-modem
This includes Name, Online, Lockdown, etc.
Diffstat (limited to 'test/test-modem')
-rwxr-xr-x | test/test-modem | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/test-modem b/test/test-modem index 5859ae31..c91caa3c 100755 --- a/test/test-modem +++ b/test/test-modem @@ -24,6 +24,9 @@ if __name__ == "__main__": properties = modem.GetProperties() + if properties.has_key('Name'): + print "Name: %s" % (properties['Name']) + if properties.has_key('Manufacturer'): print "Manufacturer: %s" % (properties['Manufacturer']) @@ -36,5 +39,27 @@ if __name__ == "__main__": if properties.has_key('Serial'): print "Serial: %s" % (properties['Serial']) + if properties.has_key('Powered'): + print "Powered: %s" % (properties['Powered']) + + if properties.has_key('Online'): + print "Online: %s" % (properties['Online']) + + if properties.has_key('Lockdown'): + print "Lockdown: %s" % (properties['Lockdown']) + + if properties.has_key('Emergency'): + print "Emergency: %s" % (properties['Emergency']) + + if properties.has_key('Features'): + print "Features:" + for feature in properties["Features"]: + print " [ %s ]" % (feature) + + if properties.has_key('Interfaces'): + print "Interfaces:" + for interface in properties["Interfaces"]: + print " [ %s ]" % (interface) + mainloop = gobject.MainLoop() mainloop.run() |