Some duplication is avoided, but most importantly: it’s much much cleaner, easier to find, functions have been cleaned up (functools.partial usages are now hidden), etc.
8 lines
342 B
Python
8 lines
342 B
Python
from scenarios import *
|
|
|
|
scenario = (
|
|
scenarios.simple_channel_join.scenario,
|
|
send_stanza("<message from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}'><x xmlns='http://jabber.org/protocol/muc#user'><invite to='{nick_one}'/></x></message>"),
|
|
expect_stanza("/message/body[text()='{nick_one} is already on channel #foo']")
|
|
)
|