~singpolyma/biboumi

ref: 1b72faef3c487232e519a3366db716f5a7e9226a biboumi/tests/end_to_end/scenarios/raw_message.py -rw-r--r-- 613 bytes
1b72faef — louiz’ Update the tests to work with oragono 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
from scenarios import *

scenario = (
    send_stanza("<presence from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}/{nick_one}' ><x xmlns='http://jabber.org/protocol/muc'/></presence>"),
    sequences.connection("irc.localhost", '{jid_one}/{resource_one}'),
    expect_stanza("/presence"),
    expect_stanza("/message"),

    send_stanza("<message from='{jid_one}/{resource_one}' to='{irc_server_one}' type='chat'><body>WHOIS {nick_one}</body></message>"),
    expect_stanza("/message[@from='{irc_server_one}'][@type='chat']/body[text()='irc.localhost: {nick_one} ~{nick_one} localhost * {nick_one}']"),
)