[Telepathy-commits] [telepathy-sofiasip/master] More tests for normalization cases

Mikhail Zabaluev mikhail.zabaluev at nokia.com
Wed Oct 8 08:46:23 PDT 2008


---
 tests/twisted/test-handle-normalisation.py |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/test-handle-normalisation.py b/tests/twisted/test-handle-normalisation.py
index 3ee87ba..8d8981f 100644
--- a/tests/twisted/test-handle-normalisation.py
+++ b/tests/twisted/test-handle-normalisation.py
@@ -10,15 +10,21 @@ def expect_connecting(event, data):
 @match('dbus-signal', signal='StatusChanged', args=[0, 1])
 def expect_connected(event, data):
     tests = [ ('sip:test at localhost', 'sip:test at localhost'),
+        ('test at localhost', 'sip:test at localhost'),
         ('test', 'sip:test at 127.0.0.1'),
         ('123456789', 'sip:123456789 at 127.0.0.1;user=phone'),
         ('+123 45-67-89', 'sip:+123456789 at 127.0.0.1;user=phone'),
         ('(123)\t45.67.89', 'sip:123456789 at 127.0.0.1;user=phone'),
         ('gt:someone at gmail.com', 'gt:someone at gmail.com'),
-        ('sip:user:pass at HoSt;something=something', 'sip:user:pass at host;something=something'),
+        ('SIP:User:PaSS at HoSt;Param=CaseMattersHere',
+         'sip:User:PaSS at host;Param=CaseMattersHere'),
         ('weird\t\n\1\2user', 'sip:weird%09%0A%01%02user at 127.0.0.1'),
         ('sip:%61%61%61%61 at 127.0.0.1', 'sip:aaaa at 127.0.0.1'),
-        ("-.!~*'()&=+$,?;/\1", "sip:-.!~*'()&=+$,?;/%01 at 127.0.0.1") ]
+        ("-.!~*'()&=+$,?;/\1", "sip:-.!~*'()&=+$,?;/%01 at 127.0.0.1"),
+        ('sip:0x0weir-d0.example.com', 'sip:0x0weir-d0.example.com'),
+        ('sip:user at 123.45.67.8', 'sip:user at 123.45.67.8')]
+
+    # TODO: test the wrong strings too
 
     orig = [ x[0] for x in tests ]
     expect = [ x[1] for x in tests ]
-- 
1.5.6.5




More information about the Telepathy-commits mailing list