def test_always_visible(self):
        """Always visible announcements are shown."""
        # This one doesn't show
        AnnouncementFactory(show_after=datetime.now() + timedelta(days=2))
        AnnouncementFactory(
            show_after=datetime.now() - timedelta(days=2),
            content='stardate 43125')

        site_wide = Announcement.get_site_wide()
        eq_(1, site_wide.count())
        eq_('stardate 43125', site_wide[0].content)
dataset/ETHPy150Open mozilla/kitsune/kitsune/announcements/tests/test_models.py/AnnouncementModelTests.test_always_visible/original