summaryrefslogtreecommitdiff
path: root/tests/sofiatest.py
diff options
context:
space:
mode:
authorSenko Rasic <senko.rasic@collabora.co.uk>2007-06-13 11:17:58 +0000
committerSenko Rasic <senko.rasic@collabora.co.uk>2007-06-13 11:17:58 +0000
commit497cd634f55be8caaa6fe4f8b64ec8dbf42efaa7 (patch)
tree0354cc53b920cc0524ec068110e717d848914d1d /tests/sofiatest.py
parenta56e844bd4430209b3a7a7ae61f193a979ebcbb0 (diff)
synced testing framework with gabble's version and updated tests to use the new @match() feature
Diffstat (limited to 'tests/sofiatest.py')
-rw-r--r--tests/sofiatest.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/sofiatest.py b/tests/sofiatest.py
index cddcaac..7ff1a1c 100644
--- a/tests/sofiatest.py
+++ b/tests/sofiatest.py
@@ -35,9 +35,9 @@ def go(register_cb, params=None):
if params is not None:
default_params.update(params)
- test = servicetest.create_test('sofiasip', 'sip', default_params)
- test.data['sip'] = SipProxy()
- reactor.listenUDP(9090, test.data['sip'])
- test.data['sip'].registrar_handler = register_cb
- servicetest.run_test(test)
+ handler = servicetest.create_test('sofiasip', 'sip', default_params)
+ handler.data['sip'] = SipProxy()
+ reactor.listenUDP(9090, handler.data['sip'])
+ handler.data['sip'].registrar_handler = register_cb
+ servicetest.run_test(handler)