summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-07-15 14:14:49 (GMT)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-07-15 15:22:17 (GMT)
commit284e46dbf3c04753599064f03f192774abdc0236 (patch)
treeb76ec085d2b36c47aaa6cea7aeeee06d3276e967 /tests
parentd4a2b72cfe1e874af0130652e371ab7d68a7cfbf (diff)
downloadtelepathy-haze-284e46dbf3c04753599064f03f192774abdc0236.tar.gz
telepathy-haze-284e46dbf3c04753599064f03f192774abdc0236.tar.xz
Expose IRC's usersplit as a separate CM parameter
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/cm/protocols.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/twisted/cm/protocols.py b/tests/twisted/cm/protocols.py
index ea15e2b..1367b73 100644
--- a/tests/twisted/cm/protocols.py
+++ b/tests/twisted/cm/protocols.py
@@ -87,6 +87,13 @@ def test(q, bus, conn, stream):
assertEquals('s', param_type['charset'])
assertEquals('s', param_type['username'])
assertEquals('s', param_type['realname'])
+ assertEquals('s', param_type['server'])
+ assertEquals(cs.PARAM_HAS_DEFAULT, param_flags['server'])
+
+ assertEquals('smcv@irc.debian.org',
+ protocol_iface.IdentifyAccount({
+ 'account': 'smcv',
+ 'server': 'irc.debian.org'}))
elif name == 'myspace':
assertEquals('x-myspace', flat_props['VCardField'])
assertEquals('im-myspace', flat_props['Icon'])