def test_32_template_path__not_exist(self): tmpl = "template_not_exist.j2" self.assertTrue(TT.template_path(tmpl, [self.workdir]) is None)
def test_30_template_path(self): tmpl = "a.j2" open(os.path.join(self.workdir, tmpl), 'w').write("a = {{ a }}") self.assertEquals(TT.template_path(tmpl, [self.workdir]), os.path.join(self.workdir, tmpl))