diff options
author | Vincent Vinet <vince.vinet@gmail.com> | 2009-09-30 12:40:42 (GMT) |
---|---|---|
committer | Vincent Vinet <vince.vinet@gmail.com> | 2009-10-01 15:27:42 (GMT) |
commit | 7a58997f7aefd0724041f019f3b5bd547c977816 (patch) | |
tree | 32b1fd1a6cb00dd0a589e65832b8c11237a5ba09 /tests | |
parent | 06db96e9dd4172484f9a028d0b5a1bc7c97664ee (diff) |
WIP for running tutorials with the ProbeProxy
Diffstat (limited to 'tests')
-rw-r--r-- | tests/probetests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/probetests.py b/tests/probetests.py index 3a55f82..a440334 100644 --- a/tests/probetests.py +++ b/tests/probetests.py @@ -24,6 +24,7 @@ import gtk import time from dbus.mainloop.glib import DBusGMainLoop +import dbus from sugar.tutorius.TProbe import TProbe, ProbeProxy @@ -45,8 +46,9 @@ class FakeActivity(object): class ProbeTest(unittest.TestCase): def test_ping(self): - pid = os.fork() m = DBusGMainLoop(set_as_default=True) + dbus.set_default_main_loop(m) + activity = FakeActivity() probe = TProbe("localhost.unittest.ProbeTest", activity.top) |