summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-06-30 15:14:40 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-06-30 15:14:40 +0100
commit18803b5cdce0f2bac597a77e02eba01206bf4f2a (patch)
treea728ec35c61c5a548667db739404322659740e83
parent24c919f58ecbefb0568a9fce7b85bec1166ea1d8 (diff)
Remove more remnants of the old test API
-rw-r--r--tests/twisted/hazetest.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/twisted/hazetest.py b/tests/twisted/hazetest.py
index b3421ea..b7e5839 100644
--- a/tests/twisted/hazetest.py
+++ b/tests/twisted/hazetest.py
@@ -303,34 +303,6 @@ def make_stream(event_func, authenticator=None, protocol=None, port=4242):
port = reactor.listenTCP(port, factory)
return (stream, port)
-def go(params=None, authenticator=None, protocol=None, start=None):
- # hack to ease debugging
- domish.Element.__repr__ = domish.Element.toXml
-
- bus = dbus.SessionBus()
- handler = servicetest.EventTest()
- conn = make_connection(bus, handler.handle_event, params)
- (stream, _) = make_stream(handler.handle_event, authenticator, protocol)
- handler.data = {
- 'bus': bus,
- 'conn': conn,
- 'conn_iface': dbus.Interface(conn,
- 'org.freedesktop.Telepathy.Connection'),
- 'stream': stream}
- handler.data['test'] = handler
- handler.verbose = (os.environ.get('CHECK_TWISTED_VERBOSE', '') != '')
- map(handler.expect, servicetest.load_event_handlers())
-
- if '-v' in sys.argv:
- handler.verbose = True
-
- if start is None:
- handler.data['conn'].Connect()
- else:
- start(handler.data)
-
- reactor.run()
-
def install_colourer():
def red(s):
return '\x1b[31m%s\x1b[0m' % s