summaryrefslogtreecommitdiff
path: root/tests/end_to_end/scenarios/quit.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end_to_end/scenarios/quit.py')
-rw-r--r--tests/end_to_end/scenarios/quit.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/end_to_end/scenarios/quit.py b/tests/end_to_end/scenarios/quit.py
new file mode 100644
index 0000000..ced5a96
--- /dev/null
+++ b/tests/end_to_end/scenarios/quit.py
@@ -0,0 +1,12 @@
+from scenarios import *
+
+import scenarios.simple_channel_join
+
+scenario = (
+ scenarios.simple_channel_join.scenario,
+
+ # Send a raw QUIT message
+ send_stanza("<message from='{jid_one}/{resource_one}' to='{irc_server_one}' type='chat'><body>QUIT bye bye</body></message>"),
+ expect_stanza("/presence[@from='#foo%{irc_server_one}/{nick_one}'][@type='unavailable']/muc_user:x/muc_user:status[@code='110']"),
+)
+