summaryrefslogtreecommitdiff
path: root/tests/end_to_end/scenarios/simple_channel_join_fixed.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end_to_end/scenarios/simple_channel_join_fixed.py')
-rw-r--r--tests/end_to_end/scenarios/simple_channel_join_fixed.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/end_to_end/scenarios/simple_channel_join_fixed.py b/tests/end_to_end/scenarios/simple_channel_join_fixed.py
new file mode 100644
index 0000000..9f5b835
--- /dev/null
+++ b/tests/end_to_end/scenarios/simple_channel_join_fixed.py
@@ -0,0 +1,11 @@
+from scenarios import *
+
+conf = "fixed_server"
+
+scenario = (
+ send_stanza("<presence from='{jid_one}/{resource_one}' to='#foo@{biboumi_host}/{nick_one}' ><x xmlns='http://jabber.org/protocol/muc'/></presence>"),
+ sequences.connection("irc.localhost", '{jid_one}/{resource_one}', fixed_irc_server=True),
+ expect_stanza("/presence[@to='{jid_one}/{resource_one}'][@from='#foo@{biboumi_host}/{nick_one}']/muc_user:x/muc_user:item[@affiliation='admin'][@role='moderator']",
+ "/presence/muc_user:x/muc_user:status[@code='110']"),
+ expect_stanza("/message[@from='#foo@{biboumi_host}'][@type='groupchat']/subject[not(text())]"),
+)