diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-06-15 22:22:44 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-06-16 16:38:44 -0500 |
commit | 6ea7dba3b6d0087eb872acd65181bf9ee61a506c (patch) | |
tree | 93b268a64d6897d41275cf5f1b89fbef5278a357 /test/test-advice-of-charge | |
parent | 087472c402e9b4a556e220ab00ee99df93d809ea (diff) | |
download | ofono-6ea7dba3b6d0087eb872acd65181bf9ee61a506c.tar.bz2 |
Fix not being able to set some attributes
Diffstat (limited to 'test/test-advice-of-charge')
-rwxr-xr-x | test/test-advice-of-charge | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-advice-of-charge b/test/test-advice-of-charge index 2ed2b5c6..b79a1410 100755 --- a/test/test-advice-of-charge +++ b/test/test-advice-of-charge @@ -72,6 +72,10 @@ if __name__ == "__main__": sys.exit(1) else: try: + if property == 'AccumulatedCallMeterMaximum': + newvalue = int(newvalue) + elif property == 'PricePerUnit': + newvalue = float(newvalue) cm.SetProperty(property, newvalue, pin) except dbus.DBusException, e: print "Unable to set property: ", e |