from scenarios import *
from scenarios.simple_channel_join import expect_self_join_presence
scenario = (
# Join 3 rooms, on the same server, with three different nicks
send_stanza(""),
send_stanza(""),
send_stanza(" SECRET"),
sequences.connection(),
# The first nick we specified should be the only one we receive, the rest was ignored
expect_self_join_presence(jid='{jid_one}/{resource_one}', chan="#foo", nick="{nick_one}"),
expect_self_join_presence(jid='{jid_one}/{resource_one}', chan="#bar", nick="{nick_one}"),
expect_self_join_presence(jid='{jid_one}/{resource_one}', chan="#baz", nick="{nick_one}"),
)