summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-03-18 19:41:52 +0100
committerlouiz’ <louiz@louiz.org>2018-03-18 19:41:52 +0100
commit1320dc6db48ebde28f5c0791cfc87cfe392d106e (patch)
tree78e6cf293734d53adc2dcb9473564558cd87fe75 /tests
parent0de282a177baa0ed2d38a68715e78344172894ca (diff)
downloadbiboumi-1320dc6db48ebde28f5c0791cfc87cfe392d106e.tar.gz
biboumi-1320dc6db48ebde28f5c0791cfc87cfe392d106e.tar.bz2
biboumi-1320dc6db48ebde28f5c0791cfc87cfe392d106e.tar.xz
biboumi-1320dc6db48ebde28f5c0791cfc87cfe392d106e.zip
Don’t reflect an empty id if it was not included
Instead, generate a uuid for that message
Diffstat (limited to 'tests')
-rw-r--r--tests/end_to_end/__main__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index a2bb2d3..914f545 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -1227,6 +1227,13 @@ if __name__ == '__main__':
partial(expect_stanza,
"/message[@from='#foo%{irc_server_one}/{nick_one}'][@id][@to='{jid_one}/{resource_one}'][@type='groupchat']/body[text()='trois']"),
+ # Send a simple message, with no id
+ partial(send_stanza, "<message from='{jid_one}/{resource_one}' to='#foo%{irc_server_one}' type='groupchat'><body>hello</body></message>"),
+
+ # Expect a non-empty id as a result (should be a uuid)
+ partial(expect_stanza,
+ "!/message[@id='']/body[text()='hello']"),
+
# Second user joins
partial(send_stanza,
"<presence from='{jid_two}/{resource_one}' to='#foo%{irc_server_one}/{nick_two}' />"),