def METHOD_NAME(phase_factory):
    phase1 = phase_factory(
        start_date=parse("2013-01-01 17:00:00 UTC"),
        end_date=parse("2013-01-01 18:00:00 UTC"),
    )
    module1 = phase1.module
    phase2 = phase_factory(
        start_date=parse("2013-01-01 17:00:00 UTC"),
        end_date=parse("2013-01-01 18:00:00 UTC"),
    )
    module2 = phase2.module
    phase_factory(
        module=module2,
        start_date=parse("2013-01-01 18:00:00 UTC"),
        end_date=parse("2013-01-01 18:00:01 UTC"),
    )
    phase4 = phase_factory(
        start_date=parse("2013-01-01 18:00:02 UTC"),
        end_date=parse("2013-01-01 19:00:00 UTC"),
    )
    module3 = phase4.module
    phase_factory(
        module=module3,
        start_date=parse("2013-01-01 19:00:01 UTC"),
        end_date=parse("2013-01-01 20:00:00 UTC"),
    )
    with freeze_time("2013-01-01 18:00:00 UTC"):
        past_and_running_modules = models.Module.objects.past_and_running_modules()
        assert module1 in past_and_running_modules
        assert module2 in past_and_running_modules
        assert module3 not in past_and_running_modules