comparison tests/test.py @ 724:ef7bee8b54e1

Another test with chaining nested filter interpolation
author Franz Glasner <f.glasner@feldmann-mg.com>
date Wed, 16 Aug 2023 17:17:27 +0200
parents c17a4e30ebbf
children 282c8e64d7b1
comparison
equal deleted inserted replaced
723:c17a4e30ebbf 724:ef7bee8b54e1
2459 np = cfg.getvarl_s(u("path2")) 2459 np = cfg.getvarl_s(u("path2"))
2460 self.assertEqual( 2460 self.assertEqual(
2461 os.path.normpath(u("a/b/d")), 2461 os.path.normpath(u("a/b/d")),
2462 np) 2462 np)
2463 2463
2464 def test_nested_filter_normpath_posixpath(self):
2465 cfg1 = {
2466 u("path1"): u("a\\b\\c"),
2467 u("path2"): u("{{|{{path1}}/../d|normpath,posixpath|}}")
2468 }
2469 cfg = cfg = configmix.config.Configuration(cfg1)
2470 np = cfg.getvarl_s(u("path2"))
2471 self.assertEqual(
2472 u("a/b/d"),
2473 np)
2474
2464 2475
2465 class T09Parser(_TParserMixin, unittest.TestCase): 2476 class T09Parser(_TParserMixin, unittest.TestCase):
2466 2477
2467 def setUp(self): 2478 def setUp(self):
2468 self.unquote = configmix.config.py_unquote 2479 self.unquote = configmix.config.py_unquote