Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-04-26 02:37:58 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-04-26 02:37:58 (GMT)
commit8600a48fa2f8fef9cbdeb5dbae8b7810717ea579 (patch)
tree6f89f37ccdfce2848dbb235d8de12578036f9e55 /tests
parent549a2df40347b20a81de30e90e9f35f6e344a66d (diff)
Fix NotFoundError
Diffstat (limited to 'tests')
-rwxr-xr-xtests/presence/mockps.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/presence/mockps.py b/tests/presence/mockps.py
index 6f2f9c7..011c381 100755
--- a/tests/presence/mockps.py
+++ b/tests/presence/mockps.py
@@ -18,9 +18,15 @@
import gobject
import dbus, dbus.service, dbus.glib
+_PRESENCE_SERVICE = "org.laptop.Sugar.Presence"
+_PRESENCE_INTERFACE = "org.laptop.Sugar.Presence"
+_PRESENCE_TEST_INTERFACE = "org.laptop.Sugar.Presence._Test"
+_PRESENCE_PATH = "/org/laptop/Sugar/Presence"
+
+
class NotFoundError(dbus.DBusException):
- def __init__(self):
- dbus.DBusException.__init__(self)
+ def __init__(self, msg=None):
+ dbus.DBusException.__init__(self, msg)
self._dbus_error_name = _PRESENCE_INTERFACE + '.NotFound'
@@ -227,11 +233,6 @@ class TestOwner(TestBuddy):
self._owner = True
-_PRESENCE_SERVICE = "org.laptop.Sugar.Presence"
-_PRESENCE_INTERFACE = "org.laptop.Sugar.Presence"
-_PRESENCE_TEST_INTERFACE = "org.laptop.Sugar.Presence._Test"
-_PRESENCE_PATH = "/org/laptop/Sugar/Presence"
-
class TestPresenceService(dbus.service.Object):
"""A test D-Bus PresenceService used to exercise the Sugar PS bindings."""