def test_template_paths(self): expected = map(lambda p: (template(p), p), TEMPLATE_PATHS) actual = oac.template_paths(TEMPLATES) expected.sort(key=lambda tup: tup[1]) actual.sort(key=lambda tup: tup[1]) self.assertEqual(actual, expected)
def test_build_tree(self): self.assertEqual(oac.build_tree( oac.template_paths(TEMPLATES), CONFIG), OUTPUT)