示例#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)
示例#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)
示例#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)
示例#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)
示例#5
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'mozorg/home.html' in tmpl,
                    list_templates())
     assert tmpls
示例#6
0
文件: tests.py 项目: dmcrock/bedrock
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'mozorg/channel.html' in tmpl,
                    list_templates())
     print list(list_templates())
     assert tmpls
示例#7
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'careers/home.html' in tmpl,
                    list_templates())
     print list(list_templates())
     assert tmpls
示例#8
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'careers/home.html' in tmpl,
                    list_templates())
     print list(list_templates())
     assert tmpls
示例#9
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: "mozorg/channel.html" in tmpl, list_templates())
     assert tmpls
示例#10
0
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'mozorg/channel.html' in tmpl,
                    list_templates())
     assert tmpls