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.
10 lines
294 B
Python
10 lines
294 B
Python
from scenarios import *
|
|
|
|
conf = 'fixed_server'
|
|
|
|
scenario = (
|
|
sequences.handshake(),
|
|
send_stanza("<presence type='subscribe' from='{jid_one}/{resource_one}' to='{biboumi_host}' id='sub1' />"),
|
|
expect_stanza("/presence[@to='{jid_one}'][@from='{biboumi_host}'][@type='subscribed']")
|
|
)
|