from scenarios import *
scenario = (
send_stanza(""),
expect_stanza("/iq/commands:command/commands:note[text()='You are not connected to the IRC server irc.localhost']"),
send_stanza(""),
sequences.connection("irc.localhost", '{jid_one}/{resource_one}'),
simple_channel_join.expect_self_join_presence(),
send_stanza(""),
expect_stanza(r"/iq/commands:command/commands:note[re:test(text(), 'Connected to IRC server irc.localhost on port 6667 since \d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d \(\d+ seconds ago\)\.\n#foo from 1 resource: {resource_one}.*')]"),
)