Esempio n. 1
0
 def test_12_render_impl__w_paths(self):
     if TT.SUPPORTED:
         for fname, _str, ctx in self.templates:
             fpath = os.path.join(self.workdir, fname)
             c_r = TT.render_impl(os.path.basename(fpath),
                                  paths=[os.path.dirname(fpath)])
             self.assertEqual(c_r, ctx)
Esempio n. 2
0
 def test_12_render_impl__w_paths(self):
     if TT.SUPPORTED:
         for fname, _str, ctx in self.templates:
             fpath = os.path.join(self.workdir, fname)
             c_r = TT.render_impl(os.path.basename(fpath),
                                  paths=[os.path.dirname(fpath)])
             self.assertEqual(c_r, ctx)
Esempio n. 3
0
 def test_12_render_impl__w_paths(self):
     if TT.SUPPORTED:
         for fn, _s, c in self.templates:
             f = os.path.join(self.workdir, fn)
             c_r = TT.render_impl(os.path.basename(f),
                                  paths=[os.path.dirname(f)])
             self.assertEquals(c_r, c)
Esempio n. 4
0
 def test_10_render_impl__wo_paths(self):
     if TT.SUPPORTED:
         for fname, _str, ctx in self.templates:
             fpath = os.path.join(self.workdir, fname)
             c_r = TT.render_impl(fpath)
             self.assertEqual(c_r, ctx)
Esempio n. 5
0
 def test_10_render_impl__wo_paths(self):
     if TT.SUPPORTED:
         for fname, _str, ctx in self.templates:
             fpath = os.path.join(self.workdir, fname)
             c_r = TT.render_impl(fpath)
             self.assertEqual(c_r, ctx)
Esempio n. 6
0
 def test_10_render_impl__wo_paths(self):
     if TT.SUPPORTED:
         for fn, _s, c in self.templates:
             f = os.path.join(self.workdir, fn)
             c_r = TT.render_impl(f)
             self.assertEquals(c_r, c)