diff options
author | louiz’ <louiz@louiz.org> | 2017-08-30 16:14:35 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-08-30 16:14:35 +0200 |
commit | dabc48b79b6189c99c246ae01af27fa170fd86a3 (patch) | |
tree | 176375a7192257873eaf6f3d357e734fc6270968 /tests | |
parent | 98227db6ad005c2e73445ce10e13484cb0568d2c (diff) | |
download | biboumi-dabc48b79b6189c99c246ae01af27fa170fd86a3.tar.gz biboumi-dabc48b79b6189c99c246ae01af27fa170fd86a3.tar.bz2 biboumi-dabc48b79b6189c99c246ae01af27fa170fd86a3.tar.xz biboumi-dabc48b79b6189c99c246ae01af27fa170fd86a3.zip |
Mark messages from the IRC server as private and no-copy
fix #3284
Diffstat (limited to 'tests')
-rw-r--r-- | tests/end_to_end/__main__.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index 859904f..93474ac 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -413,7 +413,11 @@ def connection_begin_sequence(irc_host, jid, expected_irc_presence=False, fixed_ xpath_re = "/message[@to='" + jid + "'][@from='" + irc_host + "@biboumi.localhost']/body[re:test(text(), '%s')]" result = ( partial(expect_stanza, - xpath % ('Connecting to %s:6697 (encrypted)' % irc_host)), + (xpath % ('Connecting to %s:6697 (encrypted)' % irc_host), + "/message/hints:no-copy", + "/message/carbon:private" + ) + ), partial(expect_stanza, xpath % 'Connection failed: Connection refused'), partial(expect_stanza, @@ -455,7 +459,11 @@ def connection_tls_begin_sequence(irc_host, jid, fixed_irc_server): irc_host = 'irc.localhost' return ( partial(expect_stanza, - xpath % ('Connecting to %s:7778 (encrypted)' % irc_host)), + (xpath % ('Connecting to %s:7778 (encrypted)' % irc_host), + "/message/hints:no-copy", + "/message/carbon:private", + ) + ), partial(expect_stanza, xpath % 'Connected to IRC server (encrypted).'), # These five messages can be receive in any order |