コード例 #1
0
ファイル: test_commands.py プロジェクト: callahad/bedrock
 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
ファイル: test_commands.py プロジェクト: groovecoder/bedrock
 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
ファイル: test_commands.py プロジェクト: samH99/LexisNexis
 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
ファイル: test_commands.py プロジェクト: Meghashyamt/bedrock
 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
ファイル: tests.py プロジェクト: AddySridhar95/lumbergh
 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