summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-05-06 23:56:44 +0200
committerlouiz’ <louiz@louiz.org>2020-05-06 23:56:44 +0200
commit5c1f45926d01dd0e35f2bed86fb2ea939a0793ad (patch)
tree9cdcd5e3626c9e71fff79679f562d4ab8932129c /tests
parent71efad0f659163934889855b8097f3445d3e3c92 (diff)
downloadbiboumi-5c1f45926d01dd0e35f2bed86fb2ea939a0793ad.tar.gz
biboumi-5c1f45926d01dd0e35f2bed86fb2ea939a0793ad.tar.bz2
biboumi-5c1f45926d01dd0e35f2bed86fb2ea939a0793ad.tar.xz
biboumi-5c1f45926d01dd0e35f2bed86fb2ea939a0793ad.zip
e2e: accept a regexp version of oragono, not just 2.0.0
Diffstat (limited to 'tests')
-rw-r--r--tests/end_to_end/sequences.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/end_to_end/sequences.py b/tests/end_to_end/sequences.py
index d7e889f..b545b1c 100644
--- a/tests/end_to_end/sequences.py
+++ b/tests/end_to_end/sequences.py
@@ -62,7 +62,7 @@ def connection_end(irc_host, jid, fixed_irc_server=False):
xpath_re = "/message[@to='" + jid + "'][@from='" + irc_host + "@biboumi.localhost']/body[re:test(text(), '%s')]"
irc_host = 'irc.localhost'
return (
- expect_stanza("/message/body[text()='%s: Your host is %s, running version oragono-2.0.0-8fd326fd33f29f19c8c9aa121b9b4e9ebf931879 ']" % (irc_host, irc_host)),
+ expect_stanza("/message/body[re:test(text(), '%s')]" % (r'^%s: Your host is %s, running version oragono-2\.0\.0(-[a-z0-9]+)? $' % (irc_host, irc_host))),
expect_stanza(xpath_re % (r'^%s: This server was created .*$' % irc_host)),
expect_stanza(xpath_re % (r'^%s: There are \d+ users and \d+ invisible on \d+ server\(s\)$' % irc_host)),
expect_stanza(xpath_re % ("%s: \d+ IRC Operators online" % irc_host,)),