summaryrefslogtreecommitdiff
path: root/tests/end_to_end
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-05-15 19:58:03 +0200
committerlouiz’ <louiz@louiz.org>2018-05-15 19:58:03 +0200
commit28d79a9eaa5a85f1f44d03a224517e1ccae294ba (patch)
treea8f7212f26daaa3f94ccadcd028027c896887e0e /tests/end_to_end
parentba61d2034058818fe76cef6b23f311259d37b3fe (diff)
parent1c4620d992d64e585c028659b0001b5f8ba94235 (diff)
downloadbiboumi-28d79a9eaa5a85f1f44d03a224517e1ccae294ba.tar.gz
biboumi-28d79a9eaa5a85f1f44d03a224517e1ccae294ba.tar.bz2
biboumi-28d79a9eaa5a85f1f44d03a224517e1ccae294ba.tar.xz
biboumi-28d79a9eaa5a85f1f44d03a224517e1ccae294ba.zip
Merge branch 'v8'
Diffstat (limited to 'tests/end_to_end')
-rw-r--r--tests/end_to_end/__main__.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index fe4587e..bef510c 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -608,6 +608,23 @@ if __name__ == '__main__':
),
partial(expect_stanza, "/message[@from='#foo%{irc_server_one}'][@type='groupchat']/subject[not(text())]"),
]),
+ Scenario("raw_names_command",
+ [
+ handshake_sequence(),
+ partial(send_stanza,
+ "<presence from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}/{nick_one}' />"),
+ connection_sequence("irc.localhost", '{jid_one}/{resource_one}'),
+ partial(expect_stanza,
+ "/message/body"),
+ partial(expect_stanza,
+ "/presence/muc_user:x/muc_user:status[@code='110']"
+ ),
+ partial(expect_stanza, "/message/subject[not(text())]"),
+ partial(send_stanza,
+ "<message type='chat' from='{jid_one}/{resource_one}' to='{irc_server_one}'><body>NAMES</body></message>"),
+ partial(expect_stanza, "/message/body[text()='irc.localhost: = #foo @{nick_one} ']"),
+ partial(expect_stanza, "/message/body[text()='irc.localhost: * End of /NAMES list. ']"),
+ ]),
Scenario("quit",
[
handshake_sequence(),