'Test that only How To Contribute articles are shown'

def test_only_how_to_contribute(self):

    locale = settings.WIKI_DEFAULT_LANGUAGE
    p = ProductFactory(title='Firefox', slug='firefox')
    d1 = DocumentFactory(products=[p])
    d2 = DocumentFactory(title='How    To', category=HOW_TO_CONTRIBUTE_CATEGORY, products=[p])
    ApprovedRevisionFactory(document=d1)
    ApprovedRevisionFactory(document=d2)
    eq_(1, len(self.rows(locale=locale, product=p)))
    eq_(d2.title, self.row(locale=locale, product=p)['title'])
    eq_(u'', self.row(locale=locale, product=p)['status'])
