Logo Search packages:      
Sourcecode: ubuntuone-dev-tools version File versions  Download package

def ubuntuone::devtools::testcase::DBusTestCase::setUp (   self  ) 

Setup the infrastructure fo the test (dbus service). 

Reimplemented from ubuntuone::devtools::testcase::BaseTestCase.

Definition at line 130 of file testcase.py.

00130                    :
        """ Setup the infrastructure fo the test (dbus service). """
        self.loop = DBusGMainLoop(set_as_default=True)
        self.bus = dbus.bus.BusConnection(mainloop=self.loop)
        # monkeypatch busName.__del__ to avoid errors on gc
        # we take care of releasing the name in shutdown
        dbus.service.BusName.__del__ = lambda _: None
        self.signal_receivers = set()

    def tearDown(self):

Generated by  Doxygen 1.6.0   Back to index