[Telepathy-commits] [telepathy-sofiasip/master] Bubble responses received by the fake SIP proxy as 'sip-response' events

Mikhail Zabaluev mikhail.zabaluev at nokia.com
Fri Oct 24 08:03:12 PDT 2008


We can now check and match responses in tests.
---
 tests/twisted/sofiatest.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/sofiatest.py b/tests/twisted/sofiatest.py
index 1c4472c..149cacb 100644
--- a/tests/twisted/sofiatest.py
+++ b/tests/twisted/sofiatest.py
@@ -33,6 +33,10 @@ class SipProxy(sip.RegisterProxy):
                 uri=str(message.uri), headers=message.headers, body=message.body,
                 sip_message=message))
 
+    def handle_response(self, message, addr):
+        self.event_func(servicetest.Event('sip-response',
+            code=message.code, headers=message.headers, body=message.body,
+            sip_message=message))
 
 def prepare_test(event_func, register_cb, params=None):
     actual_params = {
-- 
1.5.6.5




More information about the Telepathy-commits mailing list