diff options
author | louiz’ <louiz@louiz.org> | 2017-02-13 10:24:16 +0100 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-02-13 10:24:16 +0100 |
commit | fa6635e5487c3efe536c36a27be0ee10b918a346 (patch) | |
tree | 23e0ea0a26e17930278ebbe5d401323dfd1bdee2 /tests | |
parent | 3a288340df860f6aeaf0f9a59734c1d39d091495 (diff) | |
download | biboumi-fa6635e5487c3efe536c36a27be0ee10b918a346.tar.gz biboumi-fa6635e5487c3efe536c36a27be0ee10b918a346.tar.bz2 biboumi-fa6635e5487c3efe536c36a27be0ee10b918a346.tar.xz biboumi-fa6635e5487c3efe536c36a27be0ee10b918a346.zip |
Add a e2e test for the previous 2 commits
ref #3231
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end_to_end/__main__.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index 92a903c..945bf6f 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -551,6 +551,22 @@ if __name__ == '__main__': 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.']"), ]), + Scenario("not_connected_error", + [ + handshake_sequence(), + partial(send_stanza, + "<presence type='unavailable' from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}/{nick_one}' />"), + partial(send_stanza, + "<presence from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}/{nick_one}' />"), + connection_sequence("irc.localhost", '{jid_one}/{resource_one}'), + partial(expect_stanza, + "/message/body[text()='Mode #foo [+nt] by {irc_host_one}']"), + partial(expect_stanza, + ("/presence[@to='{jid_one}/{resource_one}'][@from='#foo%{irc_server_one}/{nick_one}']/muc_user:x/muc_user:item[@affiliation='admin'][@role='moderator']", + "/presence/muc_user:x/muc_user:status[@code='110']") + ), + partial(expect_stanza, "/message[@from='#foo%{irc_server_one}'][@type='groupchat']/subject[not(text())]"), + ]), Scenario("irc_server_disconnection", [ handshake_sequence(), |