~notgary-deactivatedaccount/zim/zim-fix-613303

« back to all changes in this revision

Viewing changes to tests/templates.py

  • Committer: Jaap Karssenberg
  • Date: 2010-12-21 10:38:15 UTC
  • Revision ID: pardus@cpan.org-20101221103815-4a9b2mbzyp5vr3gl
Calendar template now also supports month and year pages

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
                        format = os.path.basename(dir)
122
122
                        if format == 'templates':
123
123
                                continue # skip top level dir
124
 
                        files = [f for f in files if not f.startswith('.')]
 
124
                        files = [f for f in files if not f.startswith('.') and not '~' in f]
125
125
                        templates = list_templates(format)
126
126
                        self.assertTrue(len(files) > 0)
127
127
                        self.assertEqual(len(templates), len(files))