diff options
author | louiz’ <louiz@louiz.org> | 2017-07-08 18:10:47 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-07-08 18:10:47 +0200 |
commit | 9fa1852c7ea094086f45e840fa22cc83d56b744e (patch) | |
tree | 9d6d628f6403f3cb375206d406ff869c015c3eaf /tests/end_to_end | |
parent | 3a95076db40dbdff4b130c5d9b8db81e537a750d (diff) | |
download | biboumi-9fa1852c7ea094086f45e840fa22cc83d56b744e.tar.gz biboumi-9fa1852c7ea094086f45e840fa22cc83d56b744e.tar.bz2 biboumi-9fa1852c7ea094086f45e840fa22cc83d56b744e.tar.xz biboumi-9fa1852c7ea094086f45e840fa22cc83d56b744e.zip |
Send status code='332' on biboumi or IRC server’s shutdown
Diffstat (limited to 'tests/end_to_end')
-rw-r--r-- | tests/end_to_end/__main__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index 4cbcefc..7259999 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -565,7 +565,7 @@ if __name__ == '__main__': ), partial(expect_stanza, "/message[@from='#foo%{irc_server_one}'][@type='groupchat']/subject[not(text())]"), ]), - Scenario("quit_message", + Scenario("quit", [ handshake_sequence(), partial(send_stanza, @@ -581,7 +581,8 @@ if __name__ == '__main__': # Send a raw QUIT message partial(send_stanza, "<message from='{jid_one}/{resource_one}' to='{irc_server_one}' type='chat'><body>QUIT bye bye</body></message>"), - partial(expect_stanza, "/presence[@from='#foo%{irc_server_one}/{nick_one}'][@type='unavailable']/muc_user:x/muc_user:status[@code='110']"), + partial(expect_stanza, ("/presence[@from='#foo%{irc_server_one}/{nick_one}'][@type='unavailable']/muc_user:x/muc_user:status[@code='110']", + "/presence[@from='#foo%{irc_server_one}/{nick_one}'][@type='unavailable']/muc_user:x/muc_user:status[@code='110']",)), partial(expect_stanza, "/message[@from='{irc_server_one}']/body[text()='ERROR: Closing Link: localhost (Client Quit)']"), partial(expect_stanza, "/message[@from='{irc_server_one}']/body[text()='ERROR: Connection closed.']"), ]), |