def test_list_view_year_and_month_and_day_in_url(self):
        event1 = create_event(
            start_date=(2015, 2, 15),
            end_date=(2015, 2, 16),
            created_by=self.user,
            title="Bailey",
            description="This is an event for next month."
        )
        event2 = create_event(
            start_date=(2015, 2, 15),
            end_date=(2015, 2, 16),
            created_by=self.user,
            title="Natalia",
            description="This is an event for next month."
        )
        event3 = create_event(
            start_date=(2015, 2, 20),
            end_date=(2015, 2, 23),
            created_by=self.user,
            title="Judith",
            description="This is an event for next month."
        )

        for day in range(15, 17):
            response = self.client.get(reverse(
                'calendar:day_list',
                kwargs={'year': '2015', 'month': '2', 'day': day}
            ))
            self.assertContains(response, event1.title)
            self.assertContains(response, event2.title)
            self.assertNotContains(response, event3.title)

            response = self.client.get(reverse(
                'calendar:day_list',
                kwargs={'year': '2016', 'month': '2', 'day': day}
            ))
            self.assertContains(response, "No events")

        for day in range(20, 24):
            response = self.client.get(reverse(
                'calendar:day_list',
                kwargs={'year': '2015', 'month': '2', 'day': day}
            ))
            self.assertNotContains(response, event1.title)
            self.assertNotContains(response, event2.title)
            self.assertContains(response, event3.title)
Test that an event shows up if a year & month & day are entered
dataset/ETHPy150Open wreckage/django-happenings/tests/integration_tests/test_day_view.py/EventDayListViewDisplayTest.test_list_view_year_and_month_and_day_in_url