[Telepathy-commits] [telepathy-sofiasip/aliasing] Updated the unit tests to verify the new phone number normalization rules
Mikhail Zabaluev
mikhail.zabaluev at nokia.com
Wed Oct 8 01:59:24 PDT 2008
---
tests/twisted/test-handle-normalisation.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/twisted/test-handle-normalisation.py b/tests/twisted/test-handle-normalisation.py
index 9d0f440..3ee87ba 100644
--- a/tests/twisted/test-handle-normalisation.py
+++ b/tests/twisted/test-handle-normalisation.py
@@ -9,9 +9,11 @@ def expect_connecting(event, data):
@match('dbus-signal', signal='StatusChanged', args=[0, 1])
def expect_connected(event, data):
- tests = [
+ tests = [ ('sip:test at localhost', 'sip:test at localhost'),
('test', 'sip:test at 127.0.0.1'),
- ('+123 / 45-67-89', 'sip:+123%20/%2045-67-89 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'),
('weird\t\n\1\2user', 'sip:weird%09%0A%01%02user at 127.0.0.1'),
--
1.5.6.5
More information about the Telepathy-commits
mailing list