summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-04-22 15:03:29 +0200
committerlouiz’ <louiz@louiz.org>2016-04-22 15:03:29 +0200
commit254249dd7848020fea48dab5dd3405ae56c85b57 (patch)
tree103573f032a08dfff72b2f03ee876ab1a88875a9 /tests
parent376b28172b94d3950d4a20d447a9b9e49dad9ada (diff)
downloadbiboumi-254249dd7848020fea48dab5dd3405ae56c85b57.tar.gz
biboumi-254249dd7848020fea48dab5dd3405ae56c85b57.tar.bz2
biboumi-254249dd7848020fea48dab5dd3405ae56c85b57.tar.xz
biboumi-254249dd7848020fea48dab5dd3405ae56c85b57.zip
Test the the virtual channel
Diffstat (limited to 'tests')
-rw-r--r--tests/end_to_end/__main__.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index d1fbb29..4c07661 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -383,6 +383,22 @@ if __name__ == '__main__':
),
partial(expect_stanza, "/message[@from='#foo%{irc_server_one}'][@type='groupchat']/subject[not(text())]"),
]),
+ Scenario("virtual_channel_join",
+ [
+ handshake_sequence(),
+ partial(send_stanza,
+ "<presence from='{jid_one}/{resource_one}' to='%{irc_server_one}/{nick_one}' />"),
+ connection_begin_sequence("irc.localhost", '{jid_one}/{resource_one}'),
+ # partial(expect_stanza,
+ # "/message/body[text()='Mode #foo [+nt] by {irc_host_one}']"),
+ partial(expect_stanza,
+ ("/presence[@to='{jid_one}/{resource_one}'][@from='%{irc_server_one}/{nick_one}']/muc_user:x/muc_user:item[@affiliation='none'][@role='participant']",
+ "/presence/muc_user:x/muc_user:status[@code='110']")
+ ),
+ partial(expect_stanza, "/message[@from='%{irc_server_one}'][@type='groupchat']/subject[re:test(text(), '^This is a virtual channel.*$')]"),
+ # partial(expect_stanza, "/message[@from='#foo%{irc_server_one}'][@type='groupchat']/subject[not(text())]"),
+ connection_end_sequence("irc.localhost", '{jid_one}/{resource_one}'),
+ ]),
Scenario("channel_join_with_two_users",
[
handshake_sequence(),