summaryrefslogtreecommitdiff
path: root/tests/end_to_end/scenarios/notices.py
blob: dddee5dab3e847fac9365f6ccb680e9c82bb9b41 (plain)
1
2
3
4
5
6
7
8
9
10
from scenarios import *

import scenarios.simple_channel_join

scenario = (
    scenarios.simple_channel_join.scenario,

    send_stanza("<message from='{jid_one}/{resource_one}' to='{irc_server_one}' type='chat'><body>NOTICE {nick_one} :[#foo] Hello in a notice.</body></message>"),
    expect_stanza("/message[@from='#foo%{irc_server_one}/{nick_one}'][@type='groupchat']/body[text()='[notice] [#foo] Hello in a notice.']"),
)