~singpolyma/biboumi

ref: bd41bc8b0270b83e0efd331eb010fa4347a2ef67 biboumi/tests/end_to_end/scenarios/raw_names_command.py -rw-r--r-- 466 bytes
bd41bc8b — louiz’ Split all the e2e tests in their own files 3 years ago
                                                                                
bd41bc8b louiz’
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. ']"),
)