예제 #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
파일: tests.py 프로젝트: tofumatt/lumbergh
 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
파일: tests.py 프로젝트: paulbooker/bedrock
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: "mozorg/channel.html" in tmpl, list_templates())
     assert tmpls
예제 #10
0
파일: tests.py 프로젝트: ppapadeas/bedrock
 def test_list_templates(self):
     tmpls = filter(lambda tmpl: 'mozorg/channel.html' in tmpl,
                    list_templates())
     assert tmpls