summaryrefslogtreecommitdiff
path: root/tests/end_to_end/scenarios/raw_message_fixed_irc_server.py
blob: b8858a559d5fe81aeced4321a1b8136b44effad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from scenarios import *

conf = 'fixed_server'

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}', fixed_irc_server=True),
    expect_stanza("/message"),
    expect_stanza("/presence"),
    expect_stanza("/message"),
    
    send_stanza("<message from='{jid_one}/{resource_one}' to='{biboumi_host}' type='chat'><body>WHOIS {nick_one}</body></message>"),
    expect_stanza("/message[@from='{biboumi_host}'][@type='chat']/body[text()='irc.localhost: {nick_one} ~{nick_one} localhost * {nick_one}']"),
    
)