def test_next_event_over_same_day(self):
        create_event(
            start_date=(2015, 5, 1, 10),
            end_date=(2015, 5, 1, 13),
            created_by=self.user,
            title="The Event",
            description="This is an event. Enjoy.",
            repeat="WEEKDAY",
        )
        event = Event.objects.all()

        date = datetime.datetime(2015, 5, 4, 9)  # before
        y, m, d = get_next_event(event, date)
        self.assertEqual((y, m, d), (2015, 5, 4))
        date = date.replace(hour=12)  # during
        y, m, d = get_next_event(event, date)
        self.assertEqual((y, m, d), (2015, 5, 5))
        date = date.replace(hour=14)  # after
        y, m, d = get_next_event(event, date)
        self.assertEqual((y, m, d), (2015, 5, 5))
Filters sequence to include only elements where func is False.
dataset/ETHPy150Open wreckage/django-happenings/tests/integration_tests/test_get_next_event.py/NextEventTest.test_next_event_over_same_day--crossover with--dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.filter_not