[Telepathy-commits] [telepathy-gabble/master] Delete vcard/test-vcard-torture.py

Will Thompson will.thompson at collabora.co.uk
Tue Mar 17 07:21:59 PDT 2009


It doesn't do anything and isn't run anyway.
---
 tests/twisted/vcard/test-vcard-torture.py |   57 -----------------------------
 1 files changed, 0 insertions(+), 57 deletions(-)
 delete mode 100644 tests/twisted/vcard/test-vcard-torture.py

diff --git a/tests/twisted/vcard/test-vcard-torture.py b/tests/twisted/vcard/test-vcard-torture.py
deleted file mode 100644
index 5cf9390..0000000
--- a/tests/twisted/vcard/test-vcard-torture.py
+++ /dev/null
@@ -1,57 +0,0 @@
-"""
-Torture tests for vcard manager, setting and getting of vcards.
-"""
-
-import base64
-import time
-
-import dbus
-
-from servicetest import call_async, lazy, match, tp_name_prefix, unwrap
-from gabbletest import go, handle_get_vcard
-
-from twisted.words.xish import xpath
-from twisted.words.xish import domish
-from twisted.words.protocols.jabber.client import IQ
-
-def aliasing_iface(proxy):
-    return dbus.Interface(proxy, tp_name_prefix +
-        '.Connection.Interface.Aliasing')
-
-def avatars_iface(proxy):
-    return dbus.Interface(proxy, tp_name_prefix +
-        '.Connection.Interface.Avatars')
-
- at lazy
- at match('stream-iq')
-def expect_get_inital_vcard(event, data):
-    iq = event.stanza
-
-    if iq['type'] != 'get':
-        return False
-
-    if iq.uri != 'jabber:client':
-        return False
-
-    vcard = list(iq.elements())[0]
-
-    if vcard.name != 'vCard':
-        return False
-    if vcard.uri != 'vcard-temp':
-        return False
-
-    time.sleep(40)
-    return handle_get_vcard(event, data)
-
- at match('dbus-signal', signal='StatusChanged', args=[0, 1])
-def expect_connected(event, data):
-    return True
-
-
- at match('dbus-signal', signal='StatusChanged', args=[2, 1])
-def expect_disconnected(event, data):
-    return True
-
-if __name__ == '__main__':
-    go()
-
-- 
1.5.6.5



More information about the telepathy-commits mailing list