summaryrefslogtreecommitdiff
path: root/tests/end_to_end/scenarios/raw_names_command.py
blob: 09b47be738b3d53c7ef2f763f4bbd361143ac7dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from functions import send_stanza, expect_stanza

import scenarios.simple_channel_join

join_channel = scenarios.simple_channel_join.scenario

scenario = (
    join_channel,

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