aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2009-06-19 12:54:07 -0400
committerDan Williams <dcbw@redhat.com>2009-06-19 12:54:07 -0400
commit9be1d66ef01123e5d74a12e20f6c71e670a59831 (patch)
treef395ffd9fd1e513e5c7739905eee0070f2585fb0 /test
parent6d4616c1d3641d5074e3df6b04c99a593bbfe2bc (diff)
cdma: implement GetEsn()
Diffstat (limited to 'test')
-rwxr-xr-xtest/mm-test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/mm-test.py b/test/mm-test.py
index 67322984..df7f0e91 100755
--- a/test/mm-test.py
+++ b/test/mm-test.py
@@ -8,10 +8,16 @@ MM_DBUS_SERVICE='org.freedesktop.ModemManager'
MM_DBUS_PATH='/org/freedesktop/ModemManager'
MM_DBUS_INTERFACE='org.freedesktop.ModemManager'
MM_DBUS_INTERFACE_MODEM='org.freedesktop.ModemManager.Modem'
+MM_DBUS_INTERFACE_MODEM_CDMA='org.freedesktop.ModemManager.Modem.Cdma'
MM_DBUS_INTERFACE_MODEM_GSM_CARD='org.freedesktop.ModemManager.Modem.Gsm.Card'
MM_DBUS_INTERFACE_MODEM_GSM_NETWORK='org.freedesktop.ModemManager.Modem.Gsm.Network'
def inspect_cdma(proxy):
+ cdma = dbus.Interface(proxy, dbus_interface=MM_DBUS_INTERFACE_MODEM_CDMA)
+ try:
+ print "ESN: %s" % cdma.GetEsn()
+ except dbus.exceptions.DBusException:
+ pass
return