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