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

scenario = (
    sequences.handshake(),
    send_stanza("<iq type='get' id='idwhatever' from='{jid_one}/{resource_one}' to='{irc_host_one}@{biboumi_host}'><query xmlns='http://jabber.org/protocol/disco#items' node='http://jabber.org/protocol/commands' /></iq>"),
    expect_stanza("/iq[@type='result']/disco_items:query[@node='http://jabber.org/protocol/commands']",
                  "/iq/disco_items:query/disco_items:item[2]",
                  "!/iq/disco_items:query/disco_items:item[3]"),
)