def test_active(self):
        """Active announcement shows."""
        AnnouncementFactory(
            show_after=datetime.now() - timedelta(days=2),
            show_until=datetime.now() + timedelta(days=2))
        eq_(1, Announcement.get_site_wide().count())
dataset/ETHPy150Open mozilla/kitsune/kitsune/announcements/tests/test_models.py/AnnouncementModelTests.test_active/original