comparison tests/test.py @ 754:c431160e3c48

FIX: Make tests workinng on Windows again
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 01 Nov 2023 07:26:19 +0100
parents 220a9ec9ac72
children 04c5a3a36499
comparison
equal deleted inserted replaced
753:0f9e8337a24f 754:c431160e3c48
2517 u("path2"): u("{{|{{path1}}/../d|normpath,posixpath|}}") 2517 u("path2"): u("{{|{{path1}}/../d|normpath,posixpath|}}")
2518 } 2518 }
2519 cfg = cfg = configmix.config.Configuration(cfg1) 2519 cfg = cfg = configmix.config.Configuration(cfg1)
2520 np = cfg.getvarl_s(u("path2")) 2520 np = cfg.getvarl_s(u("path2"))
2521 self.assertEqual( 2521 self.assertEqual(
2522 u(os.path.join("a", "b", "d")), 2522 u("a/b/d"),
2523 np) 2523 np)
2524 2524
2525 def test_nested_filter_normpath_posixpath_2(self): 2525 def test_nested_filter_normpath_posixpath_2(self):
2526 p1 = u(os.path.join("a", "b", "C", "d")) 2526 p1 = u(os.path.join("a", "b", "C", "d"))
2527 cfg1 = { 2527 cfg1 = {
2529 u("path2"): u("{{|{{path1}}/../e|normpath,posixpath|}}") 2529 u("path2"): u("{{|{{path1}}/../e|normpath,posixpath|}}")
2530 } 2530 }
2531 cfg = cfg = configmix.config.Configuration(cfg1) 2531 cfg = cfg = configmix.config.Configuration(cfg1)
2532 np = cfg.getvarl_s(u("path2")) 2532 np = cfg.getvarl_s(u("path2"))
2533 self.assertEqual( 2533 self.assertEqual(
2534 u(os.path.join("a", "b", "C", "e")), 2534 u("a/b/C/e"),
2535 np) 2535 np)
2536 2536
2537 def test_nested_filter_normpath_posixpath_upper(self): 2537 def test_nested_filter_normpath_posixpath_upper(self):
2538 p1 = u(os.path.join("a", "b", "C", "d")) 2538 p1 = u(os.path.join("a", "b", "C", "d"))
2539 cfg1 = { 2539 cfg1 = {
2541 u("path2"): u("{{|{{path1}}/../e|normpath,posixpath,upper|}}") 2541 u("path2"): u("{{|{{path1}}/../e|normpath,posixpath,upper|}}")
2542 } 2542 }
2543 cfg = cfg = configmix.config.Configuration(cfg1) 2543 cfg = cfg = configmix.config.Configuration(cfg1)
2544 np = cfg.getvarl_s(u("path2")) 2544 np = cfg.getvarl_s(u("path2"))
2545 self.assertEqual( 2545 self.assertEqual(
2546 u(os.path.join("A", "B", "C", "E")), 2546 u("A/B/C/E"),
2547 np) 2547 np)
2548 2548
2549 2549
2550 class T09Parser(_TParserMixin, unittest.TestCase): 2550 class T09Parser(_TParserMixin, unittest.TestCase):
2551 2551