Beispiel #1
0
 def test_spam(self):
     """Don't offer unapproved (often spam) articles for translation."""
     revision(is_approved=False, save=True)
     eq_([], MostVisitedTranslationsReadout(MockRequest()).rows())
Beispiel #2
0
 def test_spam(self):
     """Don't offer unapproved (often spam) articles for translation."""
     ApprovedRevisionFactory()
     eq_([], MostVisitedTranslationsReadout(MockRequest()).rows())