def test_template_paths(self):
     expected = map(lambda p: (template(p), p), TEMPLATE_PATHS)
     actual = apply_config.template_paths(TEMPLATES)
     expected.sort(key=lambda tup: tup[1])
     actual.sort(key=lambda tup: tup[1])
     self.assertEqual(actual, expected)
示例#2
0
 def test_template_paths(self):
     expected = list(map(lambda p: (template(p), p), TEMPLATE_PATHS))
     actual = apply_config.template_paths(TEMPLATES)
     expected.sort(key=lambda tup: tup[1])
     actual.sort(key=lambda tup: tup[1])
     self.assertEqual(expected, actual)
 def test_build_tree(self):
     self.assertEqual(apply_config.build_tree(
         apply_config.template_paths(TEMPLATES), CONFIG), OUTPUT)
示例#4
0
 def test_build_tree(self):
     tree = apply_config.build_tree(apply_config.template_paths(TEMPLATES),
                                    CONFIG)
     self.assertEqual(OUTPUT, tree)