diff options
author | louiz’ <louiz@louiz.org> | 2016-08-16 16:18:08 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-08-16 16:18:08 +0200 |
commit | a4ab1db55f8ca8e130528eed01eeee04ffc8369d (patch) | |
tree | 71a9b77f032d94645b164fcb803e454c69a1c9c3 /tests | |
parent | 663d4ad54a014b2ced62610098a6f5676f813d10 (diff) | |
download | biboumi-a4ab1db55f8ca8e130528eed01eeee04ffc8369d.tar.gz biboumi-a4ab1db55f8ca8e130528eed01eeee04ffc8369d.tar.bz2 biboumi-a4ab1db55f8ca8e130528eed01eeee04ffc8369d.tar.xz biboumi-a4ab1db55f8ca8e130528eed01eeee04ffc8369d.zip |
e2e test self invite
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end_to_end/__main__.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index d438265..4a3abfb 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -989,6 +989,24 @@ if __name__ == '__main__': partial(expect_stanza, "/iq[@from='#foo%{irc_server_one}/{nick_one}'][@type='result'][@to='{jid_one}/{resource_one}'][@id='second_version']"), ]), + Scenario("self_invite", + [ + handshake_sequence(), + 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())]"), + partial(send_stanza, + "<message from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}'><x xmlns='http://jabber.org/protocol/muc#user'><invite to='{nick_one}'/></x></message>"), + partial(expect_stanza, + "/message/body[text()='{nick_one} is already on channel #foo']") + ]) ) failures = 0 |