'Test that only templates are shown'

def test_only_templates(self):

    locale = settings.WIKI_DEFAULT_LANGUAGE
    p = ProductFactory(title='Firefox', slug='firefox')
    d = DocumentFactory(products=[p])
    t = TemplateDocumentFactory(products=[p])
    ApprovedRevisionFactory(document=d)
    ApprovedRevisionFactory(document=TemplateDocumentFactory())
    eq_(1, len(self.rows(locale=locale, product=p)))
    eq_(t.title, self.row(locale=locale, product=p)['title'])
    eq_(u'', self.row(locale=locale, product=p)['status'])
