[th/clients-test-replace-text-rework] rework Util.replace_text() in test-client.py
rework Util.replace_text()
.
In particular, let the replace_arr
parameter of Util.replace_text()
be only callable entries, that can replace one text-entry. This way, they are treated uniformly (instead of special casing Regex and the plain 2-tuple). Theoretically, we could also implement further replaces, without modifying Util.replace_text()
.
Also, fix a bug for certain python versions.