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

scenario = (
    send_stanza("<iq type='get' id='idwhatever' from='{jid_one}/{resource_one}' to='{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[@node='configure']",
                  "/iq/disco_items:query/disco_items:item[4]",
                  "!/iq/disco_items:query/disco_items:item[5]"),

)