summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-05-15 19:47:40 +0200
committerlouiz’ <louiz@louiz.org>2018-05-15 19:48:50 +0200
commit861f55ed83aedfc7bcd2de1ac0ae0a9f21b910cd (patch)
tree2c5587210d9e1b593a1dffd2ce74e6010c5493e2
parenta8e922fc890a8ef2c1c43b940f0cfc3768ea1cff (diff)
downloadbiboumi-861f55ed83aedfc7bcd2de1ac0ae0a9f21b910cd.tar.gz
biboumi-861f55ed83aedfc7bcd2de1ac0ae0a9f21b910cd.tar.bz2
biboumi-861f55ed83aedfc7bcd2de1ac0ae0a9f21b910cd.tar.xz
biboumi-861f55ed83aedfc7bcd2de1ac0ae0a9f21b910cd.zip
Add a e2e test for a raw NAMES command
-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 a7a6a91..f8ef2d4 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(),