diff options
author | louiz’ <louiz@louiz.org> | 2018-03-31 02:10:39 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-03-31 02:10:39 +0200 |
commit | 0cd848e532c8c60ed4f3a5d1e6a3850929f2765b (patch) | |
tree | fa0b9bd8906657df58c13096394b042f862105a3 /tests/end_to_end | |
parent | 99c364892a30c59dfe5c41ef7009fa85ad071c12 (diff) | |
download | biboumi-0cd848e532c8c60ed4f3a5d1e6a3850929f2765b.tar.gz biboumi-0cd848e532c8c60ed4f3a5d1e6a3850929f2765b.tar.bz2 biboumi-0cd848e532c8c60ed4f3a5d1e6a3850929f2765b.tar.xz biboumi-0cd848e532c8c60ed4f3a5d1e6a3850929f2765b.zip |
Send the stanza-id for messages received by other users
fix #3347
Diffstat (limited to 'tests/end_to_end')
-rw-r--r-- | tests/end_to_end/__main__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py index 99be694..82321eb 100644 --- a/tests/end_to_end/__main__.py +++ b/tests/end_to_end/__main__.py @@ -1344,8 +1344,10 @@ if __name__ == '__main__': partial(send_stanza, "<message from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}' type='groupchat'><body>coucou</body></message>"), # Receive the message, forwarded to the two users partial(expect_unordered, [ - ("/message[@from='#foo%{irc_server_one}/{nick_one}'][@to='{jid_one}/{resource_one}'][@type='groupchat']/body[text()='coucou']",), - ("/message[@from='#foo%{irc_server_one}/{nick_one}'][@to='{jid_two}/{resource_one}'][@type='groupchat']/body[text()='coucou']",) + ("/message[@from='#foo%{irc_server_one}/{nick_one}'][@to='{jid_one}/{resource_one}'][@type='groupchat']/body[text()='coucou']", + "/message/stable_id:stanza-id[@by='#foo%{irc_server_one}'][@id]"), + ("/message[@from='#foo%{irc_server_one}/{nick_one}'][@to='{jid_two}/{resource_one}'][@type='groupchat']/body[text()='coucou']", + "/message/stable_id:stanza-id[@by='#foo%{irc_server_one}'][@id]") ]), # Send a private message, to a in-room JID |