from scenarios import *
scenario = (
send_stanza(""),
expect_stanza("/iq[@type='result']/muc_owner:query",
"/iq/muc_owner:query/dataform:x[@type='form']/dataform:field[@type='text-single'][@var='encoding_in']",
"/iq/muc_owner:query/dataform:x[@type='form']/dataform:field[@type='text-single'][@var='encoding_out']",
),
send_stanza(""
""
""
""
"UTF-8"
"latin-1"
""),
expect_stanza("/iq[@type='result']"),
send_stanza(" "),
expect_stanza("/iq[@type='result']"),
)