diff options
Diffstat (limited to 'test/test-counter')
-rwxr-xr-x | test/test-counter | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test-counter b/test/test-counter index b0173a4a..d000a8d0 100755 --- a/test/test-counter +++ b/test/test-counter @@ -14,9 +14,11 @@ class Counter(dbus.service.Object): mainloop.quit() @dbus.service.method("org.moblin.connman.Counter", - in_signature='', out_signature='') - def Usage(self): - print("Usage") + in_signature='a{sv}', out_signature='') + def Usage(self, stats): + for key in stats.keys(): + val = int(stats[key]) + print "%s = %s" % (key, val) if __name__ == '__main__': dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) |