from scenarios import * scenario = ( send_stanza(""), 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]"), )