summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-10-31 00:35:03 +0100
committerlouiz’ <louiz@louiz.org>2016-10-31 01:39:35 +0100
commit1ff71ca79ef701b0623728ce91c27a0b57a9a85d (patch)
tree32ca7018f48d7b8b8625042184db1fad2025b054
parent3e7c8ab4bc1ea15f02dbeee51ca8894bdd70eeab (diff)
downloadbiboumi-1ff71ca79ef701b0623728ce91c27a0b57a9a85d.tar.gz
biboumi-1ff71ca79ef701b0623728ce91c27a0b57a9a85d.tar.bz2
biboumi-1ff71ca79ef701b0623728ce91c27a0b57a9a85d.tar.xz
biboumi-1ff71ca79ef701b0623728ce91c27a0b57a9a85d.zip
Test raw messages
-rw-r--r--tests/end_to_end/__main__.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index 890043f..95aa1b6 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -1611,6 +1611,18 @@ if __name__ == '__main__':
"<iq from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}' id='1' type='get'><query xmlns='http://jabber.org/protocol/disco#info' node='http://jabber.org/protocol/muc#traffic'/></iq>"),
partial(expect_stanza, "/iq[@type='result']/disco_info:query[@node='http://jabber.org/protocol/muc#traffic']"),
]),
+ Scenario("raw_message",
+ [
+ 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"),
+ partial(expect_stanza, "/presence"),
+ partial(expect_stanza, "/message"),
+
+ partial(send_stanza, "<message from='{jid_one}/{resource_one}' to='{irc_server_one}' type='chat'><body>WHOIS {nick_one}</body></message>"),
+ partial(expect_stanza, "/message[@from='{irc_server_one}'][@type='chat']/body[text()='irc.localhost: {nick_one} ~{nick_one} localhost * {nick_one}']"),
+ ]),
)
failures = 0