"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/Tests/LoadTemplate.py" between
cheetah3-3.2.0.tar.gz and cheetah3-3.2.1.tar.gz

About: Cheetah3 is a template engine and code generation tool for e.g. for Web development or Java, SQL, LaTeX, form email ... (written in Python).

LoadTemplate.py  (cheetah3-3.2.0):LoadTemplate.py  (cheetah3-3.2.1)
skipping to change at line 36 skipping to change at line 36
loadTemplateClass( loadTemplateClass(
os.path.join(ImportHooksTemplatesDir, 'layout.tmpl')) os.path.join(ImportHooksTemplatesDir, 'layout.tmpl'))
templates = os.listdir(ImportHooksTemplatesDir) templates = os.listdir(ImportHooksTemplatesDir)
self.assertIn('index.py', templates) self.assertIn('index.py', templates)
self.assertIn('layout.py', templates) self.assertIn('layout.py', templates)
loadTemplateClass( loadTemplateClass(
os.path.join(ImportHooksTemplatesDir, 'index.tmpl')) os.path.join(ImportHooksTemplatesDir, 'index.tmpl'))
self.assertRaises(ImportError, loadTemplateClass, 'doesnotexist')
def test_ImportHooks(self): def test_ImportHooks(self):
templates = os.listdir(ImportHooksTemplatesDir) templates = os.listdir(ImportHooksTemplatesDir)
self.assertNotIn('index.py', templates) self.assertNotIn('index.py', templates)
self.assertNotIn('layout.py', templates) self.assertNotIn('layout.py', templates)
Cheetah.ImportHooks.install() Cheetah.ImportHooks.install()
loadTemplateClass( loadTemplateClass(
os.path.join(ImportHooksTemplatesDir, 'index.tmpl')) os.path.join(ImportHooksTemplatesDir, 'index.tmpl'))
templates = os.listdir(ImportHooksTemplatesDir) templates = os.listdir(ImportHooksTemplatesDir)
self.assertIn('index.py', templates) self.assertIn('index.py', templates)
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)