Exemplo n.º 1
0
 def test_10_find_template__exact_path(self):
     tmpl = TT.find_template(self.template)
     self.assertTrue(tmpl is not None)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 def test_00_find_template__None(self):
     with self.assertRaises(TT.TemplateNotFoundError):
         tmpl = TT.find_template("not_exist.tmpl", ask=False)