jenkins-bot has submitted this change and it was merged.
Change subject: tests_textlib.py: add tests for replaceExcept with includeonly ......................................................................
tests_textlib.py: add tests for replaceExcept with includeonly
Bug: T57315 Change-Id: I8c477ed8eed6469f81b49cf9f5b6518085283d20 --- M tests/textlib_tests.py 1 file changed, 4 insertions(+), 0 deletions(-)
Approvals: XZise: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/textlib_tests.py b/tests/textlib_tests.py index f450455..890efb1 100644 --- a/tests/textlib_tests.py +++ b/tests/textlib_tests.py @@ -1088,6 +1088,10 @@ 'x', 'y', ['source'], site=self.site), '<syntaxhighlight lang="xml">x</syntaxhighlight>') + self.assertEqual(textlib.replaceExcept('<includeonly>x</includeonly>', + 'x', 'y', ['includeonly'], + site=self.site), + '<includeonly>x</includeonly>') self.assertEqual(textlib.replaceExcept('<ref>x</ref>', 'x', 'y', ['ref'], site=self.site), '<ref>x</ref>')