def test_10_find_template__exact_path(self): tmpl = TT.find_template(self.template) self.assertTrue(tmpl is not None)
def test_20_find_template__search_paths(self): tmplname = os.path.basename(self.template) tmpl = TT.find_template(tmplname, [self.workdir]) self.assertTrue(tmpl is not None)
def test_00_find_template__None(self): with self.assertRaises(TT.TemplateNotFoundError): tmpl = TT.find_template("not_exist.tmpl", ask=False)