~singpolyma/biboumi

ref: bd41bc8b0270b83e0efd331eb010fa4347a2ef67 biboumi/tests/end_to_end/scenarios/simple_channel_join_fixed.py -rw-r--r-- 706 bytes
bd41bc8b — louiz’ Split all the e2e tests in their own files 4 years ago
                                                                                
bd41bc8b louiz’
1
2
3
4
5
6
7
8
9
10
11
12
13
from scenarios import *

conf = "fixed_server"

scenario = (
    sequences.handshake(),
    send_stanza("<presence from='{jid_one}/{resource_one}' to='#foo@{biboumi_host}/{nick_one}' />"),
    sequences.connection("irc.localhost", '{jid_one}/{resource_one}', fixed_irc_server=True),
    expect_stanza("/message/body[text()='Mode #foo [+nt] by {irc_host_one}']"),
    expect_stanza("/presence[@to='{jid_one}/{resource_one}'][@from='#foo@{biboumi_host}/{nick_one}']/muc_user:x/muc_user:item[@affiliation='admin'][@role='moderator']",
                  "/presence/muc_user:x/muc_user:status[@code='110']"),
    expect_stanza("/message[@from='#foo@{biboumi_host}'][@type='groupchat']/subject[not(text())]"),
)