Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #5
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'mozorg/home.html' in tmpl,
                    list_templates())
     assert tmpls
Beispiel #6
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'mozorg/channel.html' in tmpl,
                    list_templates())
     print list(list_templates())
     assert tmpls
Beispiel #7
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'careers/home.html' in tmpl,
                    list_templates())
     print list(list_templates())
     assert tmpls
Beispiel #8
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'careers/home.html' in tmpl,
                    list_templates())
     print list(list_templates())
     assert tmpls
Beispiel #9
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: "mozorg/channel.html" in tmpl, list_templates())
     assert tmpls
Beispiel #10
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'mozorg/channel.html' in tmpl,
                    list_templates())
     assert tmpls