[Telepathy-commits] [telepathy-mission-control/master] Tests: remove test of the old interface

Alban Crequy alban.crequy at collabora.co.uk
Tue Nov 11 16:15:19 PST 2008


---
 test/twisted/Makefile.am   |    1 -
 test/twisted/test-basic.py |   44 --------------------------------------------
 2 files changed, 0 insertions(+), 45 deletions(-)
 delete mode 100644 test/twisted/test-basic.py

diff --git a/test/twisted/Makefile.am b/test/twisted/Makefile.am
index 4611147..400d56c 100644
--- a/test/twisted/Makefile.am
+++ b/test/twisted/Makefile.am
@@ -2,7 +2,6 @@ TWISTED_TESTS =
 
 TWISTED_BASIC_TESTS = \
         test-account.py \
-        test-basic.py \
         test-connect.py
 
 TESTS =
diff --git a/test/twisted/test-basic.py b/test/twisted/test-basic.py
deleted file mode 100644
index 79b2f89..0000000
--- a/test/twisted/test-basic.py
+++ /dev/null
@@ -1,44 +0,0 @@
-import dbus
-
-from servicetest import EventPattern, tp_name_prefix, tp_path_prefix
-from fakecm import start_fake_connection_manager
-from mctest import exec_test
-
-FakeCM_bus_name = "com.example.FakeCM"
-ConnectionManager_object_path = "/com/example/FakeCM/ConnectionManager"
-
-
-def test(q, bus, mc):
-    start_fake_connection_manager(q, bus, FakeCM_bus_name,
-            ConnectionManager_object_path)
-    
-    # Introspect the old iface for debugging purpose
-    mc_introspected = mc.Introspect(
-            dbus_interface='org.freedesktop.DBus.Introspectable')
-    #print mc_introspected
-
-    # Check the old iface
-    old_iface = dbus.Interface(mc, 'org.freedesktop.Telepathy.MissionControl')
-    arg0 = old_iface.GetOnlineConnections()
-    assert arg0 == []
-    arg0 = old_iface.GetPresence()
-    assert arg0 == 0, arg0
-
-    ## Test the fake connection manager (test the test). The fake connection
-    ## manager aims to be used by Mission Control
-    fake_cm = bus.get_object(FakeCM_bus_name, ConnectionManager_object_path)
-
-    def reply_handler_cb(dummy):
-        print "ok: " + str(dummy)
-    def error_handler_cb(dummy):
-        print "error: " + str(dummy)
-
-    fake_cm.GetParameters("awrty", reply_handler=reply_handler_cb,
-            error_handler=error_handler_cb,
-            dbus_interface="org.freedesktop.Telepathy.ConnectionManager")
-    print "method called"
-    e = q.expect('dbus-method-call')
-    print e.name
-
-if __name__ == '__main__':
-    exec_test(test, {})
-- 
1.5.6.5




More information about the Telepathy-commits mailing list