def test_user_limited_today(self):
        user = self.matt
        username = self.matt.username

        pearl = mommy.make('core.Pearl', user=user)

        # Iterations for today. This `should` show.
        iterations = [
            mommy.make('core.Iteration', date=date.today(), pearl=pearl),
        ]

        # Iterations in the past and future. These should `not` show.
        mommy.make('core.Iteration', date=date.today()-timedelta(5), pearl=pearl)
        mommy.make('core.Iteration', date=date.today()+timedelta(5), pearl=pearl)

        url = reverse('edition_today', args=[username])
        request = self.factory.get(url)
        response = TodayEditionView.as_view()(request, user=username)

        self.assertEqual(
            list(response.context_data['iteration_list']),
            list(iterations),
        )
Ability to limit iterations to a user and those which are active today.
dataset/ETHPy150Open Matt-Deacalion/Mentalist/mentalist/apps/core/tests.py/EditionContextTests.test_user_limited_today