Exemple #1
0
 def test_list_templates(self):
     """Make sure we capture both html and txt templates."""
     TEMPLATES = ['mozorg/home.html',
                  'mozorg/emails/other.txt']
     tmpls = [t for t in list_templates()
              if L10nTemplate(t).rel_path in TEMPLATES]
     assert len(tmpls) == len(TEMPLATES)
Exemple #2
0
 def test_list_templates(self):
     """Make sure we capture both html and txt templates."""
     TEMPLATES = ['mozorg/home.html',
                  'mozorg/emails/other.txt',]
     tmpls = filter(lambda tmpl: tmpl in TEMPLATES,
                    list_templates())
     assert len(tmpls) == len(TEMPLATES)
Exemple #3
0
 def test_list_templates(self):
     """Make sure we capture both html and txt templates."""
     TEMPLATES = [
         'mozorg/home.html',
         'mozorg/emails/other.txt',
     ]
     tmpls = filter(lambda tmpl: tmpl in TEMPLATES, list_templates())
     assert len(tmpls) == len(TEMPLATES)
Exemple #4
0
 def test_list_templates(self):
     """Make sure we capture both html and txt templates."""
     TEMPLATES = ['mozorg/home.html', 'mozorg/emails/other.txt']
     tmpls = [
         t for t in list_templates()
         if L10nTemplate(t).rel_path in TEMPLATES
     ]
     assert len(tmpls) == len(TEMPLATES)
Exemple #5
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'mozorg/home.html' in tmpl,
                    list_templates())
     assert tmpls
Exemple #6
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'mozorg/channel.html' in tmpl,
                    list_templates())
     print list(list_templates())
     assert tmpls
Exemple #7
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'careers/home.html' in tmpl,
                    list_templates())
     print list(list_templates())
     assert tmpls
Exemple #8
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'careers/home.html' in tmpl,
                    list_templates())
     print list(list_templates())
     assert tmpls
Exemple #9
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: "mozorg/channel.html" in tmpl, list_templates())
     assert tmpls
Exemple #10
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'mozorg/channel.html' in tmpl,
                    list_templates())
     assert tmpls