from scenarios import *
scenario = (
# Mutual subscription exchange
send_stanza(""),
expect_stanza("/presence[@type='subscribed'][@id='subid1']"),
# Get the current presence of the biboumi gateway
expect_stanza("/presence"),
expect_stanza("/presence[@type='subscribe']"),
send_stanza(""),
# Unsubscribe
send_stanza(""),
expect_stanza("/presence[@type='unavailable']"),
expect_stanza("/presence[@type='unsubscribed']"),
expect_stanza("/presence[@type='unsubscribe']"),
send_stanza(""),
send_stanza(""),
)