def test_template_paths(): expected = map(lambda p: (template(p), p), TEMPLATE_PATHS) actual = template_paths(TEMPLATES) expected.sort(key=lambda tup: tup[1]) actual.sort(key=lambda tup: tup[1]) assert_equals(actual, expected)
def test_build_tree(): assert_equals(build_tree(template_paths(TEMPLATES), CONFIG), OUTPUT)
def test_template_paths(self): expected = map(lambda p: (template(p), p), TEMPLATE_PATHS) actual = oca.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(oca.build_tree(oca.template_paths(TEMPLATES), CONFIG), OUTPUT)
def test_build_tree(self): self.assertEqual(oca.build_tree( oca.template_paths(TEMPLATES), CONFIG), OUTPUT)