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)
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)
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)
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)