'Articles in the Templates category should not be counted.'

def test_not_counting_templates(self):

    t = TranslatedRevisionFactory(document__locale='de', is_approved=True)
    overview = l10n_overview_rows('de')
    eq_(1, overview['all']['numerator'])
    eq_(1, overview['top-20']['numerator'])
    eq_(1, overview['top-50']['numerator'])
    eq_(1, overview['top-100']['numerator'])
    d = t.document.parent
    d.title = 'Template:Lorem    Ipsum    Dolor'
    d.category = TEMPLATES_CATEGORY
    d.save()
    t.document.title = 'Template:Lorem    Ipsum    Dolor'
    t.document.save()
    overview = l10n_overview_rows('de')
    eq_(0, overview['all']['numerator'])
    eq_(0, overview['top-20']['numerator'])
    eq_(0, overview['top-50']['numerator'])
    eq_(0, overview['top-100']['numerator'])
