# HG changeset patch # User Franz Glasner # Date 1692199047 -7200 # Node ID ef7bee8b54e14030759cffabbfa91109c09e9ff6 # Parent c17a4e30ebbfdcce7b10d71298eef2105d47768d Another test with chaining nested filter interpolation diff -r c17a4e30ebbf -r ef7bee8b54e1 tests/test.py --- a/tests/test.py Wed Aug 16 17:04:14 2023 +0200 +++ b/tests/test.py Wed Aug 16 17:17:27 2023 +0200 @@ -2461,6 +2461,17 @@ os.path.normpath(u("a/b/d")), np) + def test_nested_filter_normpath_posixpath(self): + cfg1 = { + u("path1"): u("a\\b\\c"), + u("path2"): u("{{|{{path1}}/../d|normpath,posixpath|}}") + } + cfg = cfg = configmix.config.Configuration(cfg1) + np = cfg.getvarl_s(u("path2")) + self.assertEqual( + u("a/b/d"), + np) + class T09Parser(_TParserMixin, unittest.TestCase):