[d-feet/wjt/fix-ci] WIP



commit 39eeb8f972b9771bf263fd4d21fc3e7b7f2828b6
Author: Will Thompson <will willthompson co uk>
Date:   Tue Aug 6 15:40:25 2019 +0100

    WIP

 src/tests/tests.py.in | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/src/tests/tests.py.in b/src/tests/tests.py.in
index de40cf3..ad47989 100755
--- a/src/tests/tests.py.in
+++ b/src/tests/tests.py.in
@@ -87,18 +87,32 @@ class IntrospectionHelperTest(unittest.TestCase):
 
 class AddressInfoTest(unittest.TestCase):
     """tests for the AddressInfo class and the introspection stuff"""
+    def __init__(self, *args, **kwargs):
+        print("__init__ 1")
+        super().__init__(*args, **kwargs)
+        print("__init__ 2")
 
     def setUp(self):
+        print("setUp 1")
         self.bus = Gio.TestDBus()
+        print("setUp 2")
         self.bus.unset()
+        print("setUp 3")
         self.bus.up()
+        print("setUp 4")
 
     def tearDown(self):
+        print("tearDown 1")
         self.bus.stop()
+        print("tearDown 2")
 
     def test_bus(self):
         """introspect a name on the system bus"""
-        ai = AddressInfo(DATA_DIR, self.bus.get_bus_address(), None, "org.freedesktop.DBus")
+        print("HELLO")
+        address = self.bus.get_bus_address()
+        print("ABC")
+        ai = AddressInfo(DATA_DIR, address, None, "org.freedesktop.DBus")
+        print("OK")
 
     @unittest.skip("TODO:peer to peer test not implemented")
     def test_peer_to_peer(self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]