

def _setup_announcement(self, visible_dates=True):
    g = GroupFactory()
    u1 = UserFactory(groups=[g])
    u2 = UserFactory(groups=[g])
    self.user = u2
    return AnnouncementFactory(creator=u1, group=g, visible_dates=visible_dates)

dataset/ETHPy150Open mozilla/kitsune/kitsune/announcements/tests/test_tasks.py AnnouncementSaveTests._setup_announcement/original