summaryrefslogtreecommitdiff
path: root/tests/end_to_end/scenarios/self_invite.py
blob: 7959b3a8dd360daaa1e064dc0c833fe768918eee (plain)
1
2
3
4
5
6
7
from scenarios import *

scenario = (
    scenarios.simple_channel_join.scenario,
    send_stanza("<message from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}'><x xmlns='http://jabber.org/protocol/muc#user'><invite to='{nick_one}'/></x></message>"),
    expect_stanza("/message/body[text()='{nick_one} is already on channel #foo']")
)